Loading functional interfaces with generic parameters.

This commit is contained in:
Evgeny Gerashchenko
2013-03-18 18:53:42 +04:00
parent 526cc3ce15
commit 3b558d575c
5 changed files with 44 additions and 5 deletions

View File

@@ -0,0 +1,7 @@
package test;
public interface Comparator<T> {
int compare(T o1, T o2);
boolean equals(Object obj);
}

View File

@@ -0,0 +1,7 @@
package test
public /*synthesized*/ fun </*0*/ T> Comparator(/*0*/ function : (T?, T?) -> jet.Int) : test.Comparator<T>
public trait Comparator</*0*/ T> : java.lang.Object {
public abstract fun compare(/*0*/ p0 : T?, /*1*/ p1 : T?) : jet.Int
}