mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
It's done with similar constructions where possible trying to preserve intended behavior. Some usages are removed because they test exactly the feature that we are going to drop soon.
11 lines
202 B
Kotlin
Vendored
11 lines
202 B
Kotlin
Vendored
// !DIAGNOSTICS_NUMBER: 3
|
|
// !DIAGNOSTICS: TYPE_INFERENCE_PARAMETER_CONSTRAINT_ERROR
|
|
|
|
class A<T, R>
|
|
fun <T, R> foo(a: A<T, R>) = a
|
|
|
|
fun test() {
|
|
foo { it }
|
|
foo { x -> x}
|
|
foo { x: Int -> x}
|
|
} |