|
| 1 | +stdout = '' |
| 2 | +stderr = ''' |
| 3 | +error: tried to apply too many arguments to function |
| 4 | + ┌─ tests/fail/elaboration/fun-app/too-many-args.fathom:6:16 |
| 5 | + │ |
| 6 | +6 │ let _ : Bool = id true false; |
| 7 | + │ ^^ ----- extra argument |
| 8 | + │ │ |
| 9 | + │ expression of type `Bool -> Bool` |
| 10 | + │ |
| 11 | + = help: function expects 1 argument, but recieved 2 arguments |
| 12 | + |
| 13 | +error: tried to apply too many arguments to function |
| 14 | + ┌─ tests/fail/elaboration/fun-app/too-many-args.fathom:7:16 |
| 15 | + │ |
| 16 | +7 │ let _ : Bool = id true false false; |
| 17 | + │ ^^ ----------- extra arguments |
| 18 | + │ │ |
| 19 | + │ expression of type `Bool -> Bool` |
| 20 | + │ |
| 21 | + = help: function expects 1 argument, but recieved 3 arguments |
| 22 | + |
| 23 | +error: tried to apply too many arguments to function |
| 24 | + ┌─ tests/fail/elaboration/fun-app/too-many-args.fathom:9:16 |
| 25 | + │ |
| 26 | +9 │ let _ : Bool = always true true false; |
| 27 | + │ ^^^^^^ ----- extra argument |
| 28 | + │ │ |
| 29 | + │ expression of type `Bool -> Bool -> Bool` |
| 30 | + │ |
| 31 | + = help: function expects 2 arguments, but recieved 3 arguments |
| 32 | + |
| 33 | +error: tried to apply too many arguments to function |
| 34 | + ┌─ tests/fail/elaboration/fun-app/too-many-args.fathom:10:16 |
| 35 | + │ |
| 36 | +10 │ let _ : Bool = always true true false false; |
| 37 | + │ ^^^^^^ ----------- extra arguments |
| 38 | + │ │ |
| 39 | + │ expression of type `Bool -> Bool -> Bool` |
| 40 | + │ |
| 41 | + = help: function expects 2 arguments, but recieved 4 arguments |
| 42 | + |
| 43 | +error: tried to apply too many arguments to function |
| 44 | + ┌─ tests/fail/elaboration/fun-app/too-many-args.fathom:15:16 |
| 45 | + │ |
| 46 | +15 │ let _ : Bool = id_poly true false; |
| 47 | + │ ^^^^^^^ ----- extra argument |
| 48 | + │ │ |
| 49 | + │ expression of type `fun (@A : Type) -> A -> A` |
| 50 | + │ |
| 51 | + = help: function expects 1 argument, but recieved 2 arguments |
| 52 | + |
| 53 | +error: tried to apply too many arguments to function |
| 54 | + ┌─ tests/fail/elaboration/fun-app/too-many-args.fathom:16:16 |
| 55 | + │ |
| 56 | +16 │ let _ : Bool = id_poly true false false; |
| 57 | + │ ^^^^^^^ ----------- extra arguments |
| 58 | + │ │ |
| 59 | + │ expression of type `fun (@A : Type) -> A -> A` |
| 60 | + │ |
| 61 | + = help: function expects 1 argument, but recieved 3 arguments |
| 62 | + |
| 63 | +error: tried to apply too many arguments to function |
| 64 | + ┌─ tests/fail/elaboration/fun-app/too-many-args.fathom:18:16 |
| 65 | + │ |
| 66 | +18 │ let _ : Bool = always_poly true true false; |
| 67 | + │ ^^^^^^^^^^^ ----- extra argument |
| 68 | + │ │ |
| 69 | + │ expression of type `fun (@A : Type) (@B : Type) -> A -> B -> Type` |
| 70 | + │ |
| 71 | + = help: function expects 2 arguments, but recieved 3 arguments |
| 72 | + |
| 73 | +error: tried to apply too many arguments to function |
| 74 | + ┌─ tests/fail/elaboration/fun-app/too-many-args.fathom:19:16 |
| 75 | + │ |
| 76 | +19 │ let _ : Bool = always_poly true true false false; |
| 77 | + │ ^^^^^^^^^^^ ----------- extra arguments |
| 78 | + │ │ |
| 79 | + │ expression of type `fun (@A : Type) (@B : Type) -> A -> B -> Type` |
| 80 | + │ |
| 81 | + = help: function expects 2 arguments, but recieved 4 arguments |
| 82 | + |
| 83 | +''' |
0 commit comments