Skip to content

Commit 8395cbd

Browse files
committed
add test showing that locs are wrong in record type spread with overlapping labels
1 parent a668cbe commit 8395cbd

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
We've found a bug for you!
3+
/.../fixtures/record_type_spreads.res:3:12-20
4+
5+
1 │ type t = {x: int, y: string}
6+
2 │
7+
3 │ type t2 = {x: string, y: float}
8+
4 │
9+
5 │ type t3 = {...t, ...t2}
10+
11+
Two labels are named x
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
type t = {x: int, y: string}
2+
3+
type t2 = {x: string, y: float}
4+
5+
type t3 = {...t, ...t2}

0 commit comments

Comments
 (0)