mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-04 15:51:54 +00:00
Loading SAM constructor functions for nested interfaces.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package test;
|
||||
|
||||
public interface Nested {
|
||||
|
||||
public interface Runnable {
|
||||
void run();
|
||||
}
|
||||
|
||||
public interface Deeper1 {
|
||||
public interface Runnable {
|
||||
void run();
|
||||
void run2();
|
||||
}
|
||||
}
|
||||
|
||||
public interface Deeper2 {
|
||||
public interface Runnable {
|
||||
void run();
|
||||
String toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package test
|
||||
|
||||
public trait Nested : java.lang.Object {
|
||||
|
||||
public trait Deeper1 : java.lang.Object {
|
||||
|
||||
public trait Runnable : java.lang.Object {
|
||||
public abstract fun run() : jet.Unit
|
||||
public abstract fun run2() : jet.Unit
|
||||
}
|
||||
}
|
||||
|
||||
public trait Deeper2 : java.lang.Object {
|
||||
|
||||
public trait Runnable : java.lang.Object {
|
||||
public abstract fun run() : jet.Unit
|
||||
}
|
||||
}
|
||||
|
||||
public trait Runnable : java.lang.Object {
|
||||
public abstract fun run() : jet.Unit
|
||||
}
|
||||
}
|
||||
|
||||
package Nested {
|
||||
public /*synthesized*/ fun Runnable(/*0*/ function : () -> jet.Unit) : test.Nested.Runnable
|
||||
|
||||
package Deeper2 {
|
||||
public /*synthesized*/ fun Runnable(/*0*/ function : () -> jet.Unit) : test.Nested.Deeper2.Runnable
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user