Files
kotlin/compiler/testData/compileJavaAgainstKotlin/method/AccessorGenericSignature.kt
Alexander Udalov 8425f2e668 Copy type parameters for JVM function accessors
Otherwise generic signature wasn't correctly written to accessors, resulting in
classfiles not being valid and javac failing to compile Java sources against
them
2014-02-26 21:22:57 +04:00

17 lines
331 B
Kotlin

package test
import java.util.ArrayList
public class BadClass {
fun foo() {
val x: () -> Int = {
bar(ArrayList<Int>())
baz<Double, ArrayList<ArrayList>>(ArrayList())
}
}
private fun <D> bar(f: List<D>) {}
private fun <E : Number, F : MutableList<E>> baz(m: List<F>) {}
}