ff6b3350ae
This lets us properly complete the call which fixes some issues with false-positive type mismatches. This change doesn't apply to array literals in annotation calls yet because they are resolved as context-dependent. This will be adapted in a following commit. #KT-59581
8 lines
224 B
Kotlin
Vendored
8 lines
224 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
fun foo(l: () -> Unit) {}
|
|
fun bar(l: () -> String) {}
|
|
|
|
val a = foo { <!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER, UNSUPPORTED!>[]<!> }
|
|
val b = bar { <!TYPE_MISMATCH, UNSUPPORTED!>[]<!> }
|