Move: More accurate visibility analysis
#KT-10553 Fixed
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
class A {
|
||||
private val a = B()
|
||||
|
||||
private class B {
|
||||
private val c = C()
|
||||
}
|
||||
|
||||
private class C()
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
class A {
|
||||
private val a = B()
|
||||
|
||||
private class <caret>B {
|
||||
private val c = C()
|
||||
}
|
||||
|
||||
private class C()
|
||||
}
|
||||
+2
@@ -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
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"mainFile": "main.kt",
|
||||
"type": "MOVE_KOTLIN_NESTED_CLASS",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
Reference in New Issue
Block a user