Skip to content

Commit 40f90a7

Browse files
Add test fixtures
1 parent 1701f12 commit 40f90a7

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
We've found a bug for you!
3+
/.../fixtures/gadt_rec_missing.res:4:1-8:27
4+
5+
2 │ type daylight
6+
3 │
7+
4 │ type timezone<_> =
8+
5 │  | EST: timezone<standard>
9+
6 │  | EDT: timezone<daylight>
10+
7 │  | CST: timezone<standard>
11+
8 │  | CDT: timezone<daylight>
12+
9 │
13+
14+
GADTs require recursive type syntax.
15+
Please define your type using `type rec` instead of `type`.
16+
Example: type rec t = ...
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
We've found a bug for you!
3+
/.../fixtures/polyvariant_int_too_large.res:1:9-29
4+
5+
1 │ let x = #12345678901234567890
6+
2 │
7+
8+
Integer literal exceeds int32 range. Use float or BigInt if larger values are required.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
type standard
2+
type daylight
3+
4+
type timezone<_> =
5+
| EST: timezone<standard>
6+
| EDT: timezone<daylight>
7+
| CST: timezone<standard>
8+
| CDT: timezone<daylight>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
let x = #12345678901234567890

0 commit comments

Comments
 (0)