Move: More accurate visibility analysis
#KT-10553 Fixed
This commit is contained in:
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
package a
|
||||
|
||||
private fun foo() {
|
||||
bar()
|
||||
}
|
||||
|
||||
private fun bar() {
|
||||
foo()
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package a
|
||||
|
||||
object Utils
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
package a
|
||||
|
||||
private fun <caret>foo() {
|
||||
bar()
|
||||
}
|
||||
|
||||
private fun bar() {
|
||||
foo()
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package a
|
||||
|
||||
object Utils
|
||||
Vendored
+2
@@ -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
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"mainFile": "main.kt",
|
||||
"type": "MOVE_KOTLIN_TOP_LEVEL_DECLARATIONS",
|
||||
"targetFile": "utils.kt"
|
||||
}
|
||||
Reference in New Issue
Block a user