Idris2/tests/idris2/reflection002/expected
Edwin Brady 2a75731916 In reflection, check now takes a concrete type
So the type of Elab now gives the expected type that's being elaborated
to, meaning that we can run 'check' in the middle of scripts and use the
result.
2020-06-02 22:41:37 +01:00

6 lines
129 B
Plaintext

1/1: Building power (power.idr)
Main> Main.cube : Nat -> Nat
cube = \x => mult x (mult x (mult x 1))
Main> 27
Main> Bye for now!