Skip to content

Commit 651ba2b

Browse files
committedNov 20, 2022
clean up tests
1 parent 9f82fc2 commit 651ba2b

File tree

2 files changed

+1
-34
lines changed

2 files changed

+1
-34
lines changed
 

‎jscomp/test/record_regression.js

-11
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,6 @@ var h = newrecord$2;
257257

258258
var h10 = newrecord$3;
259259

260-
var foo1 = /* Foo */{
261-
name: "foo"
262-
};
263-
264-
var foo2 = /* Foo */{
265-
name: "foo",
266-
age: 3
267-
};
268-
269260
exports.f1 = f1;
270261
exports.f2 = f2;
271262
exports.f3 = f3;
@@ -279,8 +270,6 @@ exports.h10 = h10;
279270
exports.h11 = h11;
280271
exports.po = po;
281272
exports.setAA = setAA;
282-
exports.foo1 = foo1;
283-
exports.foo2 = foo2;
284273
exports.ir0 = ir0;
285274
exports.ir1 = ir1;
286275
exports.ir2 = ir2;

‎jscomp/test/record_regression.res

+1-23
Original file line numberDiff line numberDiff line change
@@ -88,29 +88,7 @@ let _ = {...po, aa: @ns.optional None}
8888

8989
let setAA = (ao: option<int>) => {aa: @ns.optional ao, bb: None}
9090

91-
// Trigger representation mismatch error.
92-
// module M: {
93-
// type partiallyOptional = {
94-
// @ns.optional aa: int,
95-
// bb: option<int>,
96-
// }
97-
// } = {
98-
// type partiallyOptional = {
99-
// @ns.optional aa: int,
100-
// @ns.optional bb: int,
101-
// }
102-
// }
103-
104-
type foo = Foo({name: string, age?: int})
105-
106-
let foo1 = Foo({name: "foo"})
107-
let foo2 = Foo({name: "foo", age: 3})
108-
109-
// should be type error
110-
// let foo3 = Foo({name: "foo", age: 3, nickname: "hasNoNickname"})
111-
// let foo4 = Foo({name: "foo", age: "3"})
112-
113-
type inlinedRecord = V0({x0: string, x1?: string, x2?: int, x3: int}) | V1({y0: string, y1: int})
91+
type inlinedOptional = V0({x0: string, x1?: string, x2?: int, x3: int}) | V1({y0: string, y1: int})
11492

11593
let ir0 = V0({x0: "v0", x3: 3})
11694
let ir1 = V0({x0: "v0", x1: "v1", x3: 3})

0 commit comments

Comments
 (0)