JVM_IR KT-43051 no static inline class members for default Java methods
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
// JVM_TARGET: 1.8
|
||||
// FILE: javaDefaultInterfaceMember.kt
|
||||
interface KFoo2 : JIFoo
|
||||
|
||||
interface KFooUnrelated {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
interface KFoo3 : KFoo2, KFooUnrelated {
|
||||
override fun foo() {}
|
||||
}
|
||||
|
||||
inline class Test1(val x: Int) : JIFoo
|
||||
|
||||
inline class Test2(val x: Int) : KFoo2
|
||||
|
||||
inline class Test3(val x: Int) : KFoo3
|
||||
|
||||
// FILE: JIFoo.java
|
||||
public interface JIFoo {
|
||||
default void foo() {}
|
||||
}
|
||||
Reference in New Issue
Block a user