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
230 B
Kotlin
Vendored
15 lines
230 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
package kotlin.jvm
|
|
|
|
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 |