Idris2/tests/idris2/reg005/expected

12 lines
439 B
Plaintext
Raw Normal View History

1/1: Building iftype (iftype.idr)
2020-08-16 14:20:12 +03:00
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:15:15--15:19
2021-02-11 20:24:26 +03:00
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"))]
2020-07-22 22:16:43 +03:00
15 | isInListBad = Here
2021-02-11 20:24:26 +03:00
^^^^