Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
HEAD
/
.
/
tests
/
elab
/
patbug.lean
blob: 94f67ba99ac903f311afb02ea5824287dcc39032 [
file
]
open
Lean
def
f
:
Name
→
Name
|
n@
(
`foo.bla) => n
| _ => Name.anonymous
def tst : IO Unit := do
if hash `
foo
.
bla
!=
hash
(
f
`foo.bla) then
throw $ IO.userError "bug"
IO.println "ok"
/-- info: ok -/
#guard_msgs in
#eval tst