Skip to content

Commit 1a8cb75

Browse files
committed
Add example with multiple ...'s
1 parent de53bf1 commit 1a8cb75

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

jscomp/test/DotDotDot.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
'use strict';
22

33

4+
var MultipleDotDotDots = {
5+
x: {
6+
x: 10,
7+
y: "abc"
8+
}
9+
};
10+
411
var v = {
512
x: 10,
613
y: "",
@@ -17,4 +24,5 @@ var v2 = {
1724

1825
exports.v = v;
1926
exports.v2 = v2;
27+
exports.MultipleDotDotDots = MultipleDotDotDots;
2028
/* No side effect */

jscomp/test/DotDotDot.res

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,10 @@ type svgProps = {
3434
x?: string,
3535
y?: string,
3636
}
37+
38+
module MultipleDotDotDots = {
39+
type t1 = {x: int}
40+
type t2 = {y: string}
41+
type t = {dotdotdot: t1, dotdotdot: t2}
42+
let x: t = {x: 10, y: "abc"}
43+
}

0 commit comments

Comments
 (0)