Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
b8a31ed10eeabaca678ab303ec3f4d7d5a817841
/
.
/
tests
/
lean
/
scopedInstanceOutsideNamespace.lean
blob: 6b14ea596e48ef5ba5a002fe4ebbbb1ae96999ae [
file
]
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"