92f1681de0
Report error on value classes without @JvmInline annotation. Do not check for @JvmInline annotation in value classes since it breaks reflection.
17 lines
216 B
Kotlin
Vendored
17 lines
216 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
|
// FIR_IDENTICAL
|
|
|
|
package kotlin
|
|
|
|
annotation class JvmInline
|
|
|
|
@JvmInline
|
|
value class Foo(val x: Int) {
|
|
init {}
|
|
|
|
init {
|
|
val f = 1
|
|
}
|
|
}
|