Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
2b455fc1ba7dcb99fa03fdfc31c7672d6ccfc9fd
/
.
/
compiler
/
testData
/
codegen
/
box
/
controlflow
/
smartcastOnThisInInitializationSection.kt
blob: c5aa4b35e48504dd68dbdafa517b9ac824e2684f [
file
]
// ISSUE: KT-67808
open
class
Base
<
T
>
{
val x
:
Any
?
init
{
this
as
Derived
x
=
"OK"
}
}
class
Derived
:
Base
<
String
>()
fun box
():
String
{
val d
=
Derived
()
return
d
.
x
as
String
}