mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-04 08:31:30 +00:00
Added tests with type parameter of class in SAM adapter.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package test;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class TypeParameterOfClass<T> {
|
||||
public void foo(Comparator<T> comparator) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
public open class TypeParameterOfClass</*0*/ T> : java.lang.Object {
|
||||
public constructor TypeParameterOfClass</*0*/ T>()
|
||||
public open /*synthesized*/ fun foo(/*0*/ p0 : ((T?, T?) -> jet.Int)?) : jet.Unit
|
||||
public open fun foo(/*0*/ p0 : java.util.Comparator<T>?) : jet.Unit
|
||||
}
|
||||
Reference in New Issue
Block a user