lean4-htt/tests/lean/run/patbug.lean
2020-03-17 12:58:08 -07:00

12 lines
201 B
Text

open Lean
def f : Name → Name
| n@(`foo.bla) => n
| _ => Name.anonymous
def tst : IO Unit := do
when (hash `foo.bla != hash (f `foo.bla)) $
throw $ IO.userError "bug";
IO.println "ok"
#eval tst