Inline refactoring: improve resolve

#KT-39705 Fixed
#KT-19459 Fixed
This commit is contained in:
Dmitry Gridin
2020-06-19 18:16:27 +07:00
parent 5ad94daaa5
commit 360a5bf348
24 changed files with 232 additions and 61 deletions
+13
View File
@@ -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()
}