Skip to content

Commit c882f6f

Browse files
committed
add a test case for both expression and types
1 parent a4ccf25 commit c882f6f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

jscomp/test/arity.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,16 @@ function h(u) {
2727
return m(1, 2);
2828
}
2929

30+
var nested = {
31+
x: {
32+
y: 3
33+
}
34+
};
35+
3036
exports.u = u;
3137
exports.u2 = u2;
3238
exports.f = f;
3339
exports.add = add;
3440
exports.h = h;
41+
exports.nested = nested;
3542
/* No side effect */

jscomp/test/arity.re

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,7 @@ let u = obj => {
5959
let h = u => {
6060
let m = u##hi ;
6161
m(.1,2);
62-
}
62+
}
63+
64+
//
65+
let nested = ({ "x" : {"y" : 3 }} : {. "x" : {. "y" : int }})

0 commit comments

Comments
 (0)