Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
161333d3e7d13dd98386fe346a71a07eadfe4756
/
.
/
compiler
/
testData
/
codegen
/
box
/
unit
/
nullableUnitInWhen3.kt
blob: 739abd8b0bf87b73e9f1518b595c056cce64d5c4 [
file
]
fun foo
()
{}
fun box
():
String
{
val x
=
when
(
"A"
)
{
"B"
->
foo
()
else
->
null
}
foo
()
return
if
(
x
==
null
)
"OK"
else
"Fail"
}
// CHECK_BYTECODE_TEXT
// 0 Intrinsics.areEqual
// 1 TABLESWITCH