Move SAM adapters from static scope to synthetic one
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// FILE: Statics.java
|
||||
|
||||
public class Statics {
|
||||
public static void foo(Runnable r) {}
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
class A : Statics() {
|
||||
fun test() {
|
||||
foo {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package
|
||||
|
||||
public final class A : Statics {
|
||||
public constructor A()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final fun test(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public open class Statics {
|
||||
public constructor Statics()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
// Static members
|
||||
public open fun foo(/*0*/ r: java.lang.Runnable!): kotlin.Unit
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// FILE: a/Statics.java
|
||||
|
||||
package a;
|
||||
|
||||
public class Statics {
|
||||
public static void foo(Runnable r) {}
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
package b
|
||||
|
||||
import a.Statics.*
|
||||
|
||||
fun test() {
|
||||
foo {}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package
|
||||
|
||||
package b {
|
||||
public fun test(): kotlin.Unit
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// FILE: a/Statics.java
|
||||
|
||||
package a;
|
||||
|
||||
public class Statics {
|
||||
public static void foo(Runnable r) {}
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
package b;
|
||||
|
||||
import a.Statics.foo
|
||||
|
||||
fun test() {
|
||||
foo {}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package
|
||||
|
||||
package b {
|
||||
public fun test(): kotlin.Unit
|
||||
}
|
||||
Reference in New Issue
Block a user