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.
18 lines
524 B
Kotlin
Vendored
18 lines
524 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
package kotlin.jvm
|
|
|
|
import kotlin.reflect.KClass
|
|
|
|
annotation class JvmInline
|
|
|
|
@JvmInline
|
|
value class MyInt(val x: Int)
|
|
@JvmInline
|
|
value class MyString(val x: String)
|
|
|
|
annotation class Ann1(val a: <!INVALID_TYPE_OF_ANNOTATION_MEMBER!>MyInt<!>)
|
|
annotation class Ann2(val a: <!INVALID_TYPE_OF_ANNOTATION_MEMBER!>Array<MyString><!>)
|
|
annotation class Ann3(<!FORBIDDEN_VARARG_PARAMETER_TYPE!>vararg<!> val a: <!INVALID_TYPE_OF_ANNOTATION_MEMBER!>MyInt<!>)
|
|
|
|
annotation class Ann4(val a: KClass<MyInt>) |