Loading SAM constructor functions for nested interfaces.

This commit is contained in:
Evgeny Gerashchenko
2013-03-21 23:51:04 +04:00
parent 17cc055152
commit b891d6d87f
7 changed files with 155 additions and 14 deletions

View File

@@ -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();
}
}
}

View File

@@ -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
}
}