Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
21de67cac1bef9259daa407b68a12e178923aef3
/
.
/
compiler
/
testData
/
codegen
/
box
/
smartCasts
/
implicitReceiverInWhen.kt
blob: ce31ad2d9f3ea41e95c082e3f18ee06480497d57 [
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
()