10 lines
249 B
Text
10 lines
249 B
Text
scoped instance : ToString Bool where -- Error
|
|
toString b := if b then "t" else "f"
|
|
|
|
#eval toString true
|
|
|
|
scoped infix:65 "+" => Nat.add -- Error
|
|
|
|
@[scoped instance] -- Error
|
|
def myInst : ToString Bool where
|
|
toString b := if b then "t" else "f"
|