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