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 @@
class A {
private val a = B()
private class B {
private val c = C()
}
private class C()
}
@@ -0,0 +1,9 @@
class A {
private val a = B()
private class <caret>B {
private val c = C()
}
private class C()
}
@@ -0,0 +1,2 @@
Class B uses constructor C() which will be inaccessible after move
Property a uses class B which will be inaccessible after move
@@ -0,0 +1,5 @@
{
"mainFile": "main.kt",
"type": "MOVE_KOTLIN_NESTED_CLASS",
"withRuntime": "true"
}