Skip to content

Commit 232cf78

Browse files
committed
Add test with zero.
1 parent 41f960a commit 232cf78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jscomp/gentype_tests/typescript-react-example/src/Unboxed.gen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export type r2 = string;
1616

1717
export type t = number[] | number | ((_1:number) => number);
1818

19-
export type tabIndex = "0" | "1";
19+
export type tabIndex = "0" | "1" | 0;
2020

2121
export const testV1: (x:v1) => v1 = UnboxedBS.testV1;
2222

jscomp/gentype_tests/typescript-react-example/src/Unboxed.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type r2 = B({g: string})
1818
type t = Array(array<int>) | Record({x: int}) | Function((. int) => int)
1919

2020
@genType
21-
type tabIndex = | @as("0") Activity | @as("1") UserKeyword
21+
type tabIndex = | @as("0") Activity | @as("1") UserKeyword | @as(0) NumZero
2222

2323
@genType
2424
let a = Activity

0 commit comments

Comments
 (0)