Move: More accurate visibility analysis

#KT-10553 Fixed
This commit is contained in:
Alexey Sedunov
2016-01-20 18:26:53 +03:00
parent 64f6c62d4f
commit 218dd41a08
49 changed files with 442 additions and 112 deletions
@@ -0,0 +1,9 @@
package a
private fun foo() {
bar()
}
private fun bar() {
foo()
}
@@ -0,0 +1,3 @@
package a
object Utils
@@ -0,0 +1,9 @@
package a
private fun <caret>foo() {
bar()
}
private fun bar() {
foo()
}
@@ -0,0 +1,3 @@
package a
object Utils
@@ -0,0 +1,2 @@
Function bar() uses function foo() which will be inaccessible after move
Function foo() uses function bar() which will be inaccessible after move
@@ -0,0 +1,5 @@
{
"mainFile": "main.kt",
"type": "MOVE_KOTLIN_TOP_LEVEL_DECLARATIONS",
"targetFile": "utils.kt"
}