Idris2/tests/idris2/reflection/reflection022/BadElabScript.idr

15 lines
191 B
Idris

module BadElabScript
import Language.Reflection
%language ElabReflection
x : Elab Nat
x = do
ignore $ check {expected=Type} `(Nat)
?someHole
check `(%search)
y : Nat
y = %runElab x