Files
kotlin-fork/compiler/testData/diagnostics/tests/referenceToParameterizedFun.kt
T
Nikolay Lunyak d13e60aaec [FIR] Prevent loosing errors for synthetic outer calls
The error occurs when completing the
call for the outer synthetic call
`ACCEPT_SPECIFIC_TYPE`. The error
is saved into the CS of this outer
candidate, which leads to its
callable reference to be an error
reference, but since such calls are
not parts of the FIR tree, we never
collect such errors.

^Fixed KT-59233
2023-07-10 10:26:43 +00:00

10 lines
176 B
Kotlin
Vendored

// FIR_IDENTICAL
// ISSUE: KT-59233
fun <T> consume(arg: T) {}
fun box(): String {
val foo = ::<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>consume<!>
return "OK"
}