lean4-htt/tests/lean/run/patbug.lean
Leonardo de Moura d9273786c7 chore: remove when and «unless»
They are obsolete.

cc @Kha
2021-03-20 18:52:18 -07:00

12 lines
199 B
Text

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"
#eval tst