Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/builderInference/errorOnStubReceiver.kt
T
2024-01-10 14:56:30 +00:00

23 lines
354 B
Kotlin
Vendored

// FIR_IDENTICAL
// WITH_STDLIB
// FIR_DUMP
// SKIP_TXT
fun Any?.test() {}
class Bar {
fun test() {}
}
fun main() {
buildList {
add(Bar())
<!BUILDER_INFERENCE_STUB_RECEIVER!>this.get(0)<!>.test() // resolved to Any?.test
}
buildList<Bar> {
add(Bar())
this.get(0).test() // resolved to Bar.test
}
}