Idris2/tests/idris2/reflection011/tryref.idr
2021-10-16 11:24:12 +01:00

13 lines
221 B
Idris

import Language.Reflection
%language ElabReflection
elabTry : Elab ()
elabTry
= try (declare `[ x : 94
x = 94 ])
(declare `[ x : Int
x = 94 ])
%runElab elabTry