fe5adab652
For example, NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER
It became especially relevant after 0e84bf2053
that together with later commits bring a lot of unnecessary
NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER diagnostic
18 lines
268 B
Kotlin
Vendored
18 lines
268 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
|
|
package a
|
|
|
|
interface Closeable {}
|
|
class C : Closeable {}
|
|
|
|
public inline fun <T: Closeable, R> T.use1(block: (T)-> R) : R {
|
|
return block(this)
|
|
}
|
|
|
|
fun main() {
|
|
C().use1 {
|
|
w -> // ERROR here
|
|
<!UNRESOLVED_REFERENCE!>x<!>
|
|
}
|
|
}
|