Idris2/tests/idris2/interface015/expected

40 lines
1.1 KiB
Plaintext
Raw Normal View History

1/1: Building gnu (gnu.idr)
Error: While processing right hand side of TestSurprise1. Multiple solutions found in search of:
2020-07-22 22:16:43 +03:00
Gnu
gnu:47:27--47:32
2021-02-11 20:24:26 +03:00
43 |
44 | ||| This is the meat. I'd expect this function to raise an error
45 | ||| because it is ambiguous which local/local function to use.
46 | TestSurprise1 : (gnu1, gnu2 : Gnu) -> String
2020-07-22 22:16:43 +03:00
47 | TestSurprise1 gnu1 gnu2 = Guess
2021-02-11 20:24:26 +03:00
^^^^^
Possible correct results:
2020-07-22 22:16:43 +03:00
gnu1
gnu2
Error: While processing right hand side of TestSurprise2. Multiple solutions found in search of:
2020-07-22 22:16:43 +03:00
Gnu
gnu:50:21--50:26
2021-02-11 20:24:26 +03:00
46 | TestSurprise1 : (gnu1, gnu2 : Gnu) -> String
47 | TestSurprise1 gnu1 gnu2 = Guess
48 |
49 | TestSurprise2 : (f,g : Unit -> Gnu) -> String
2020-07-22 22:16:43 +03:00
50 | TestSurprise2 f g = Guess
2021-02-11 20:24:26 +03:00
^^^^^
Possible correct results:
2020-07-22 22:16:43 +03:00
f ()
g ()
Error: While processing right hand side of TestSurprise3. Can't find an implementation for Gnu.
gnu:53:19--53:24
2021-02-11 20:24:26 +03:00
49 | TestSurprise2 : (f,g : Unit -> Gnu) -> String
50 | TestSurprise2 f g = Guess
51 |
52 | TestSurprise3 : (Unit -> Gnu, Unit -> Gnu) -> String
2020-07-22 22:16:43 +03:00
53 | TestSurprise3 f = Guess
2021-02-11 20:24:26 +03:00
^^^^^