mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-21 02:31:50 +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!
|