Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
21de67cac1bef9259daa407b68a12e178923aef3
/
.
/
compiler
/
testData
/
codegen
/
box
/
smartCasts
/
implicitToGrandSon.kt
blob: 588cc9ff24dfb61b38d0532ec459cd244eb1a213 [
file
]
open
class
A
{
open fun foo
()
=
"FAIL"
fun bar
()
=
if
(
this
is
C
)
foo
()
else
foo
()
}
open
class
B
:
A
()
open
class
C
:
B
()
{
override
fun foo
()
=
"OK"
}
fun box
()
=
C
().
bar
()