Skip to content

Commit bd6744c

Browse files
committed
add tests
1 parent 2a02218 commit bd6744c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jscomp/test/record_regression.res

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,8 @@ let setAA = (ao: option<int>) => {aa: @ns.optional ao, bb: None}
104104
type foo = Foo({name: string, age?: int})
105105

106106
let foo1 = Foo({name: "foo"})
107-
let foo2 = Foo({name: "foo", age: 3})
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"})

0 commit comments

Comments
 (0)