Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6330def4271b547b5c7db5f9759e387de2908e94
/
.
/
compiler
/
testData
/
codegen
/
box
/
smartCasts
/
implicitToGrandSon.kt
blob: 8970e5fa7165e5968d4b12a6f081a6636efde510 [
file
] [
log
] [
blame
]
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
()