KT-9418 Suggest name for new declaration basing on unresolved names in code

#KT-9418 Fixed
This commit is contained in:
Valentin Kipyatkov
2016-01-15 13:27:53 +03:00
parent 83ca4b84f9
commit 28331bca9f
23 changed files with 614 additions and 116 deletions
@@ -0,0 +1,24 @@
// RUN_HIGHLIGHTING_BEFORE
class C {
fun foo(p: Int) {
print(unresolvedInFoo)
}
val <caret>
fun bar(s: String, x: UnresolvedType) {
print(unresolvedInBar)
print(s.unresolvedWithReceiver)
}
}
fun f() {
print(unresolvedOutside)
}
// EXIST: unresolvedInFoo
// EXIST: unresolvedInBar
// ABSENT: unresolvedWithReceiver
// ABSENT: unresolvedOutside
// ABSENT: UnresolvedType