mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Fixed mapping generic type with multiple bounds from Java to Kotlin.
#KT-3480 fixed
This commit is contained in:
committed by
Zalim Bashorov
parent
e47c84f40f
commit
d3570153ef
@@ -0,0 +1,9 @@
|
||||
package test;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
public class Max {
|
||||
public <T extends Object & Comparable<? super T>> T max(Collection<? extends T> coll) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
public open class Max: Object() {
|
||||
public open fun max<T : Any?>(p0 : Collection<T>?): T? where T : Comparable<T>? {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class Max : java.lang.Object {
|
||||
public constructor Max()
|
||||
public open fun </*0*/ T> max(/*0*/ p0: jet.Collection<T>?): T? where T : jet.Comparable<T>?
|
||||
}
|
||||
Reference in New Issue
Block a user