Inline refactoring: improve resolve
#KT-39705 Fixed #KT-19459 Fixed
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
private class A {
|
||||
val bar = 1
|
||||
val parent: A
|
||||
get() = null!!
|
||||
}
|
||||
|
||||
fun <T> myrun(f: () -> T) = f()
|
||||
|
||||
private fun A.<caret>foo() = myrun { bar }
|
||||
|
||||
private fun test(a: A) {
|
||||
a.foo()
|
||||
}
|
||||
Reference in New Issue
Block a user