mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-18 18:31:43 +03:00
ebafddcfc9
We can work out what it should be since each case is supposed to have the same type, so we can look ahead to the alternatives. This way, we don't have to rely on the scrutinee alone to calculate the type of the case block. (Idris 1 does this too but I've only just encountered the need for it in Idris 2 now!)
8 lines
220 B
Plaintext
8 lines
220 B
Plaintext
1/1: Building arity (arity.idr)
|
|
arity.idr:4:16--4:22:While processing right hand side of foo at arity.idr:4:1--7:1:
|
|
When unifying (1 {arg:169} : Nat) -> MyN and MyN
|
|
Mismatch between:
|
|
(1 {arg:169} : Nat) -> MyN
|
|
and
|
|
MyN
|