92f1681de0
Report error on value classes without @JvmInline annotation. Do not check for @JvmInline annotation in value classes since it breaks reflection.
15 lines
226 B
Kotlin
Vendored
15 lines
226 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
package kotlin
|
|
|
|
annotation class JvmInline
|
|
|
|
interface IFoo
|
|
|
|
object FooImpl : IFoo
|
|
|
|
@JvmInline
|
|
value class Test1(val x: Any) : IFoo by FooImpl
|
|
|
|
@JvmInline
|
|
value class Test2(val x: IFoo) : IFoo by x |