Idris2/tests/idris2/linear/linear006/ZFun.idr
2023-09-07 14:57:22 +01: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!