Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/regressions/kt2445.kt
T
Svetlana Isakova 4b77e9b83a tests for obsolete tasks
#KT-2445 fixed
 #KT-2459 fixed
2012-08-06 18:18:27 +04:00

11 lines
265 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 = callback(null!!)