mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-30 07:02:24 +03:00
14 lines
172 B
Idris
14 lines
172 B
Idris
parameters (X : Nat)
|
|
Foo : Type
|
|
Foo = Nat
|
|
|
|
record Bar where
|
|
constructor MkBar
|
|
Gnu : Foo
|
|
|
|
Baz : Foo -> Nat
|
|
Baz x = x
|
|
|
|
Quux : Bar -> Foo
|
|
Quux x = Gnu x
|