Skip to content

Commit b8c3511

Browse files
committed
fix warnings
1 parent 5011b3d commit b8c3511

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
We've found a bug for you!
2+
Warning number 5 (configured as error)
33
/.../fixtures/warnings1.re 3:3-7
44

55
1 │ let x = (a, b) => a + b;
@@ -8,7 +8,5 @@
88
4 │ 10
99
5 │ };
1010

11-
This has type:
12-
int => int
13-
But somewhere wanted:
14-
unit
11+
this function application is partial,
12+
maybe some arguments are missing.
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11

2-
We've found a bug for you!
2+
Warning number 10
33
/.../fixtures/warnings2.re 2:3-4
44

55
1 │ let z = () => {
6-
2 │ 10;
6+
2 │ 10;
77
3 │ 10
88
4 │ };
99

10-
This has type:
11-
int
12-
But somewhere wanted:
13-
unit
10+
This expression returns a value, but you're not doing anything with it. If this is on purpose, wrap it with `ignore`.

0 commit comments

Comments
 (0)