Idris2/tests/idris2/reg005/expected
2021-02-12 18:37:12 +00:00

12 lines
443 B
Plaintext

1/1: Building iftype (iftype.idr)
Error: While processing right hand side of isInListBad. Can't solve constraint between: if c then "Foo" else "Baz" and if c then "Foo" else "Bar".
iftype.idr:15:15--15:19
11 | isInList = Here
12 |
13 | isInListBad : Elem (ABC Bool String (\c => if c then "Foo" else "Bar"))
14 | [(ABC Bool String (\c => if c then "Foo" else "Baz"))]
15 | isInListBad = Here
^^^^