Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
847a2ced07911ac5a943ed41390d054d0e81aa1f
/
.
/
compiler
/
testData
/
codegen
/
box
/
lateinit
/
inBaseClass.kt
blob: b4e4965115384b925f4d66d9b59d5a745ed582c1 [
file
]
// WITH_STDLIB
import
kotlin
.
test
.*
class
A
(
val a
:
Int
)
open
class
B
{
lateinit
var
a
:
A
}
class
C
:
B
()
{
fun foo
()
{
a
=
A
(
42
)
}
}
fun box
():
String
{
val c
=
C
()
c
.
foo
()
assertEquals
(
42
,
c
.
a
.
a
)
return
"OK"
}