mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-26 21:23:53 +03:00
14 lines
143 B
Idris
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!
|