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.
17 lines
220 B
Kotlin
Vendored
17 lines
220 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
|
// FIR_IDENTICAL
|
|
|
|
package kotlin.jvm
|
|
|
|
annotation class JvmInline
|
|
|
|
@JvmInline
|
|
value class Foo(val x: Int) {
|
|
init {}
|
|
|
|
init {
|
|
val f = 1
|
|
}
|
|
}
|