129de76288
but not for value classes. Since inline classes and value classes share the same flag, we use presence of the annotation to distinguish them.
15 lines
284 B
Kotlin
Vendored
15 lines
284 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
|
|
|
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
|
|
} |