mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 10:02:03 +03:00
20 lines
229 B
Idris
20 lines
229 B
Idris
import Language.Reflection
|
|
|
|
(.fun) : Nat -> Nat
|
|
|
|
x : TTImp
|
|
|
|
f : Nat -> TTImp
|
|
|
|
useX : TTImp
|
|
useX = `(g (~x).fun)
|
|
|
|
useX' : TTImp
|
|
useX' = `(g ~x.fun)
|
|
|
|
useFX : TTImp
|
|
useFX = `(g (~(f 5)).fun)
|
|
|
|
useFX' : TTImp
|
|
useFX' = `(g ~(f 5).fun)
|