e359db4111
Previously, error types on those implicit parameters were being lost. Changed test data is only partly here (only parts that are considered to be correct). Other ones (new green-to-red changes) should belong to the next commit and will be fixed soon (as a part of PCLA).
12 lines
315 B
Kotlin
Vendored
12 lines
315 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNREACHABLE_CODE
|
|
//KT-2445 Calling method with function with generic parameter causes compile-time exception
|
|
package a
|
|
|
|
fun main() {
|
|
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>test<!> <!CANNOT_INFER_PARAMETER_TYPE!>{
|
|
|
|
}<!>
|
|
}
|
|
|
|
fun <R> test(callback: (R) -> Unit):Unit = callback(null!!)
|