Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
f7ff397a310cd4d47fc4849043f8c9d47412e512
/
.
/
compiler
/
testData
/
codegen
/
box
/
smartCasts
/
implicitReceiverInWhen.kt
blob: 346e5b3d5c5f374c07612328c1bb253ff9f9e5d1 [
file
]
// IGNORE_BACKEND_FIR: JVM_IR
open
class
A
{
fun f
():
String
=
when
(
this
)
{
is
B
->
x
else
->
"FAIL"
}
}
class
B
(
val x
:
String
)
:
A
()
fun box
()
=
B
(
"OK"
).
f
()