Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6f1b95d296c5592d3a3e71cc638994fa2ba4e4f7
/
.
/
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
}