Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/regressions/kt2445.kt
T

10 lines
287 B
Kotlin

//KT-2445 Calling method with function with generic parameter causes compile-time exception
package a
fun main(args: Array<String>) {
<!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>test<!> {
}
}
fun test<R>(callback: (R) -> Unit):Unit = <!UNREACHABLE_CODE!>callback<!>(null!!)