Files
kotlin-fork/idea/idea-completion/testData/basic/common/fromUnresolvedNames/MemberFunction.kt
T
2016-01-20 13:55:56 +03:00

28 lines
448 B
Kotlin
Vendored

// RUN_HIGHLIGHTING_BEFORE
class C {
fun foo(p: Int) {
unresolvedInFoo1()
if (p > 0) {
unresolvedInFoo2()
}
}
fun <caret>
fun bar(s: String) {
unresolvedInBar()
s.unresolvedWithReceiver()
}
}
fun f() {
unresolvedOutside()
}
// EXIST: unresolvedInFoo1
// EXIST: unresolvedInFoo2
// EXIST: unresolvedInBar
// ABSENT: unresolvedWithReceiver
// ABSENT: unresolvedOutside