Quick Fixes: Implement "Rename unresolved reference" fix
#KT-8795 Fixed
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
// "Rename reference" "true"
|
||||
// ERROR: Unresolved reference: x
|
||||
// ERROR: Unresolved reference: x
|
||||
// ERROR: Unresolved reference: x
|
||||
// ERROR: Unresolved reference: x
|
||||
// ERROR: Unresolved reference: x
|
||||
// ERROR: Unresolved reference: x
|
||||
class A {
|
||||
fun f() = 1
|
||||
fun g() = ""
|
||||
}
|
||||
|
||||
class B
|
||||
|
||||
fun bar(i: Int) {
|
||||
|
||||
}
|
||||
|
||||
fun baz(i: Int) {
|
||||
|
||||
}
|
||||
|
||||
fun foo(a: A, b: B) {
|
||||
val aa = A()
|
||||
bar(a.x)
|
||||
baz(a.x)
|
||||
bar(a.f<caret>())
|
||||
baz(a.f())
|
||||
bar(a.x(1))
|
||||
baz(a.x(1))
|
||||
bar(aa.x())
|
||||
bar(b.x())
|
||||
}
|
||||
Reference in New Issue
Block a user