Idris2/tests/idris2/reflection/reflection011/tryref.idr
2023-09-07 14:57:22 +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