Files
kotlin-fork/idea/testData/diagnosticMessage/functionPlaceholder.kt
T
2015-07-10 15:05:12 +03:00

11 lines
204 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}
}