Fixed loading SAM interfaces when they inherit abstract methods.

This commit is contained in:
Evgeny Gerashchenko
2013-05-21 16:37:24 +04:00
parent fb416418f0
commit de6d5a4a96
10 changed files with 76 additions and 8 deletions
@@ -0,0 +1,6 @@
package test;
import java.util.Comparator;
public interface SubstitutedSamInterface extends Comparator<String> {
}
@@ -0,0 +1,7 @@
package test
public /*synthesized*/ fun SubstitutedSamInterface(/*0*/ function: (jet.String?, jet.String?) -> jet.Int): test.SubstitutedSamInterface
public trait SubstitutedSamInterface : java.util.Comparator<jet.String> {
public abstract override /*1*/ /*fake_override*/ fun compare(/*0*/ p0: jet.String?, /*1*/ p1: jet.String?): jet.Int
}
@@ -0,0 +1,4 @@
package test;
public interface SubstitutedSamInterfaceSubclassOfBuiltin extends Comparable<SubstitutedSamInterfaceSubclassOfBuiltin> {
}
@@ -0,0 +1,7 @@
package test
public /*synthesized*/ fun SubstitutedSamInterfaceSubclassOfBuiltin(/*0*/ function: (test.SubstitutedSamInterfaceSubclassOfBuiltin) -> jet.Int): test.SubstitutedSamInterfaceSubclassOfBuiltin
public trait SubstitutedSamInterfaceSubclassOfBuiltin : jet.Comparable<test.SubstitutedSamInterfaceSubclassOfBuiltin> {
public abstract override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.SubstitutedSamInterfaceSubclassOfBuiltin): jet.Int
}