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