cd6e865fb3
- Allow 'lateinit' for inline classes which underlying type is suitable for 'lateinit' - K2: report all problems related to 'lateinit' modifier ^KT-55052: Fixed
19 lines
341 B
Kotlin
Vendored
19 lines
341 B
Kotlin
Vendored
// !SKIP_JAVAC
|
|
// !LANGUAGE: +InlineClasses
|
|
// ALLOW_KOTLIN_PACKAGE
|
|
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
|
// FIR_IDENTICAL
|
|
|
|
package kotlin.jvm
|
|
|
|
annotation class JvmInline
|
|
|
|
@JvmInline
|
|
value class Foo(val x: Int)
|
|
|
|
<!INAPPLICABLE_LATEINIT_MODIFIER!>lateinit<!> var a: Foo
|
|
|
|
fun foo() {
|
|
<!INAPPLICABLE_LATEINIT_MODIFIER!>lateinit<!> var b: Foo
|
|
}
|