mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-11-28 11:05:17 +03:00
a972778eab
They don't all pass yet, for minor reasons. Coming shortly... Unfortunately the startup overhead for chez is really noticeable here!
16 lines
327 B
Plaintext
16 lines
327 B
Plaintext
data Pair : Type -> Type -> Type where
|
|
MkPair : (1 xa : $a) -> (1 ya : $b) -> Pair $a $b
|
|
|
|
dup : (1 x : $a) -> Pair $a $a
|
|
dup $x = MkPair ?foo ?bar
|
|
|
|
dup1 : (1 x : $a) -> Pair $a $a
|
|
dup1 $x = MkPair x ?baz1
|
|
|
|
dup2 : (1 x : $a) -> Pair $a $a
|
|
dup2 $x = MkPair ?baz2 x
|
|
|
|
dupbad : (1 x : $a) -> Pair $a $a
|
|
dupbad $x = MkPair x x
|
|
|