Files
kotlin-fork/compiler/testData/codegen/bytecodeListing/lateInitNotNull.kt
T
Steven Schäfer 3291cf7a6e JVM IR: Mark lateinit fields as NotNull
This is needed for compatibility with the JVM backend.
2020-06-04 17:52:56 +02:00

6 lines
178 B
Kotlin
Vendored

// Test to ensure that we mark the backing field of a lateinit property
// as NotNull, even though the field is nullable in the JVM IR backend.
class A {
lateinit var x: A
}