blob: 1293657f94a786a9bc9feb7f0140d81597297a18 [file] [edit]
import Lean.Hygiene
import Lean.Exception
open Lean
def bar : StateT Nat Unhygienic Syntax.Term := do modify (ยท + 1); `("hi")
def foo : StateT Nat Unhygienic Syntax.Term := do `(throwError $(โ† bar))
#eval Unhygienic.run (foo.run 0) |>.2
-- don't do this
syntax "โ†" term : term
def foo' : StateT Nat Unhygienic Syntax.Term := do `(throwError $(โ† bar))