Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/priority/localExtVsNonLocalExt.fir.kt
T

17 lines
276 B
Kotlin
Vendored

// !CHECK_TYPE
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE
class A
fun A.foo() = this
fun test(a: A) {
fun A.foo() = 3
a.foo() checkType { <!UNRESOLVED_REFERENCE!>_<!><Int>() }
with(a) {
foo() checkType { _<Int>() }
}
}