Skip to content

Commit 5bba7f8

Browse files
committed
Add super error fixtures
1 parent 887fc6f commit 5bba7f8

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-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/variant_tag_overlaps_with_field.res:2:15-33
4+
5+
1 │ @tag("name")
6+
2 │ type animal = Cat({name: string})
7+
3 │
8+
4 │ let cat = Cat({name: "my cat"})
9+
10+
Constructor Cat: the @tag name "name" conflicts with inline record field "name". Use a different @tag name or rename the field.
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/variant_tag_overlaps_with_field_as.res:2:15-48
4+
5+
1 │ @tag("name")
6+
2 │ type animal = Cat({@as("name") catName: string})
7+
3 │
8+
4 │ let cat = Cat({catName: "my cat"})
9+
10+
Constructor Cat: the @tag name "name" conflicts with inline record field "name". Use a different @tag name or rename the field.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@tag("name")
2+
type animal = Cat({name: string})
3+
4+
let cat = Cat({name: "my cat"})
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@tag("name")
2+
type animal = Cat({@as("name") catName: string})
3+
4+
let cat = Cat({catName: "my cat"})

0 commit comments

Comments
 (0)