Skip to content

Commit 79ded60

Browse files
committed
Add a few more test cases
1 parent d324b07 commit 79ded60

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

jscomp/test/VariantCoercion.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/VariantCoercion.res

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,8 @@ module CoerceVariantBinaryOp = {
125125
type flag = | @as(0) A | @as(2) B
126126

127127
let x = 0->lor((B :> int))
128+
129+
type flagStr = | @as("one") One | @as("two") Two
130+
131+
let y = (One :> string)->String.length
128132
}

0 commit comments

Comments
 (0)