Skip to content

Commit d324b07

Browse files
committed
Add test
1 parent c8a8e08 commit d324b07

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

jscomp/test/VariantCoercion.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/VariantCoercion.res

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,9 @@ module CoerceFromPolyvariantToVariant = {
120120
let withUnboxedCatchAll: withUnboxedCatchAll = #One
121121
let withUnboxedCatchAllP = (withUnboxedCatchAll :> withUnboxedCatchAllP)
122122
}
123+
124+
module CoerceVariantBinaryOp = {
125+
type flag = | @as(0) A | @as(2) B
126+
127+
let x = 0->lor((B :> int))
128+
}

0 commit comments

Comments
 (0)