1bbcae5ed2
We cannot call lazy resolve to STATUS phase from scopes as scopes may be accessed on a STATUS phase or earlier ^KT-54890 ^KTIJ-23587 fixed
18 lines
329 B
Kotlin
Vendored
18 lines
329 B
Kotlin
Vendored
// !SKIP_JAVAC
|
|
// !LANGUAGE: +InlineClasses
|
|
// ALLOW_KOTLIN_PACKAGE
|
|
|
|
package kotlin.jvm
|
|
|
|
annotation class JvmInline
|
|
|
|
interface IFoo
|
|
|
|
object FooImpl : IFoo
|
|
|
|
@JvmInline
|
|
value class Test1(val x: Any) : <!VALUE_CLASS_CANNOT_IMPLEMENT_INTERFACE_BY_DELEGATION!>IFoo<!> by FooImpl
|
|
|
|
@JvmInline
|
|
value class Test2(val x: IFoo) : IFoo by x
|