KT-9418 Suggest name for new declaration basing on unresolved names in code
#KT-9418 Fixed
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user