mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
Otherwise generic signature wasn't correctly written to accessors, resulting in classfiles not being valid and javac failing to compile Java sources against them
17 lines
331 B
Kotlin
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>) {}
|
|
}
|