mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-04 08:31:30 +00:00
Loading functional interfaces with generic parameters.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package test;
|
||||
|
||||
public interface Comparator<T> {
|
||||
int compare(T o1, T o2);
|
||||
|
||||
boolean equals(Object obj);
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user