mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-25 04:33:45 +03:00
13 lines
222 B
Idris
13 lines
222 B
Idris
|
-- this works
|
||
|
aNat : {default Z theNat : Nat} -> Nat
|
||
|
aNat = theNat
|
||
|
|
||
|
-- this does too, now (but did not work before)
|
||
|
record ANat where
|
||
|
constructor MkANat
|
||
|
{default Z theNat : Nat}
|
||
|
|
||
|
-- let's try out
|
||
|
ex : ANat
|
||
|
ex = MkANat
|