Files
kotlin/compiler/testData/compileJavaAgainstKotlin/method/AccessorGenericSignature.kt
2014-05-29 21:24:05 +04:00

18 lines
342 B
Kotlin
Vendored

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