Idris2/tests/idris2/linear006/ZFun.idr
2021-01-21 11:33:03 +00:00

14 lines
143 B
Idris

import Data.Fin
foo : Fin 10
foo = 5
0 test : Fin k -> Nat
test i = k
0 baz : Nat
baz = test foo -- fine!
bar : Nat
bar = test foo -- bad!