mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
18 lines
342 B
Kotlin
Vendored
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>) {}
|
|
}
|