Skip to content

Commit 8c27920

Browse files
committed
Add test for missing labels error
1 parent c6802ba commit 8c27920

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
We've found a bug for you!
3+
/.../fixtures/missing_label.res:3:9
4+
5+
1 │ let f = (~a) => a ++ ""
6+
2 │
7+
3 │ let _ = f("")
8+
4 │
9+
10+
Label ~a was omitted in the application of this labeled function.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
We've found a bug for you!
3+
/.../fixtures/missing_labels.res:3:9
4+
5+
1 │ let f = (~a, ~b) => a ++ b
6+
2 │
7+
3 │ let _ = f("", "")
8+
4 │
9+
10+
Labels ~a, ~b were omitted in the application of this labeled function.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
let f = (~a) => a ++ ""
2+
3+
let _ = f("")
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
let f = (~a, ~b) => a ++ b
2+
3+
let _ = f("", "")

0 commit comments

Comments
 (0)