Skip to content

Commit 382d49b

Browse files
committed
Update compiler artifacts.
1 parent 57098c4 commit 382d49b

File tree

454 files changed

+6500
-5754
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

454 files changed

+6500
-5754
lines changed

jscomp/build_tests/super_errors/expected/UncurriedArgsNotApplied.res.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212

1313
Here's the original error message
1414
This has type: option<'a>
15-
But it's expected to have type: (. unit) => option<int>
15+
But it's expected to have type: unit => option<int>

jscomp/build_tests/super_errors/expected/arity_mismatch.res.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
2 │ let makeVariables = makeVar(.~f=f => f)
77
3 │
88

9-
This uncurried function has type (. ~f: 'a => 'a, unit) => int
9+
This uncurried function has type (~f: 'a => 'a, unit) => int
1010
It is applied with 1 arguments but it requires 2.

jscomp/build_tests/super_errors/expected/arity_mismatch2.res.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
2 │ let makeVariables = makeVar(. 1, 2, 3)
77
3 │
88

9-
This uncurried function has type (. 'a, unit) => int
9+
This uncurried function has type ('a, unit) => int
1010
It is applied with 3 arguments but it requires 2.
Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +0,0 @@
1-
2-
We've found a bug for you!
3-
/.../fixtures/c_for_u_in_c_mode.res:3:5-5:1
4-
5-
1 │ module Foo: {
6-
2 │ let add: (. int, int) => int
7-
3 │ } = {
8-
4 │  let add = (a, b) => a + b
9-
5 │ }
10-
6 │
11-
12-
Signature mismatch:
13-
Modules do not match:
14-
{
15-
let add: (int, int) => int
16-
}
17-
is not included in
18-
{
19-
let add: (. int, int) => int
20-
}
21-
Values do not match:
22-
let add: (int, int) => int (curried)
23-
is not included in
24-
let add: (. int, int) => int (uncurried)
25-
/.../fixtures/c_for_u_in_c_mode.res:2:3-30:
26-
Expected declaration
27-
/.../fixtures/c_for_u_in_c_mode.res:4:7-9:
28-
Actual declaration

jscomp/build_tests/super_errors/expected/curried_expected.res.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
3 │ let z1 = expectCurried((. x, y) => x+y)
88
4 │
99

10-
This function is an uncurried function where a curried function is expected
10+
This function expected 1 argument, but got 2
Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +0,0 @@
1-
2-
We've found a bug for you!
3-
/.../fixtures/curry_in_uncurry.res:3:1
4-
5-
1 │ let f = (a, b) => a + b
6-
2 │
7-
3 │ f(. 2, 2)->Js.log
8-
4 │
9-
10-
This function is a curried function where an uncurried function is expected

jscomp/build_tests/super_errors/expected/method_arity_mismatch.res.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
4 │ }
99
5 │
1010

11-
This uncurried function has type (. int, int) => unit
11+
This uncurried function has type (int, int) => unit
1212
It is applied with 1 arguments but it requires 2.
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11

22
We've found a bug for you!
3-
/.../fixtures/missing_label.res:3:9
3+
/.../fixtures/missing_label.res:3:11-12
44

55
1 │ let f = (~a) => a ++ ""
66
2 │
7-
3 │ let _ = f("")
7+
3 │ let _ = f("")
88
4 │
99

10-
Label ~a was omitted in the application of this labeled function.
10+
The function applied to this argument has type (~a: string) => string
11+
This argument cannot be applied without label
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11

22
We've found a bug for you!
3-
/.../fixtures/missing_labels.res:3:9
3+
/.../fixtures/missing_labels.res:3:11-12
44

55
1 │ let f = (~a, ~b) => a ++ b
66
2 │
7-
3 │ let _ = f("", "")
7+
3 │ let _ = f("", "")
88
4 │
99

10-
Labels ~a, ~b were omitted in the application of this labeled function.
10+
The function applied to this argument has type
11+
(~a: string, ~b: string) => string
12+
This argument cannot be applied without label
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11

22
We've found a bug for you!
3-
/.../fixtures/moreArguments1.res:2:9-15
3+
/.../fixtures/moreArguments1.res:2:9
44

55
1 │ let x = (~a, ~b) => a + b
6-
2 │ let y = x(~a=2) + 2
6+
2 │ let y = x(~a=2) + 2
77
3 │
88

9-
This call is missing an argument of type (~b: int)
9+
This uncurried function has type (~a: int, ~b: int) => int
10+
It is applied with 1 arguments but it requires 2.

0 commit comments

Comments
 (0)