Move: Nested classes support
#KT-9027 In Progress
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
package test
|
||||
|
||||
class A {
|
||||
inner class OuterOuterY
|
||||
|
||||
inner class B {
|
||||
inner class C {
|
||||
fun test() {
|
||||
OuterOuterY()
|
||||
this@A.OuterOuterY()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package test
|
||||
|
||||
class A {
|
||||
inner class OuterOuterY
|
||||
|
||||
inner class B {
|
||||
inner class <caret>C {
|
||||
fun test() {
|
||||
OuterOuterY()
|
||||
this@A.OuterOuterY()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Indirect outer instances won't be extracted: OuterOuterY()
|
||||
Indirect outer instances won't be extracted: this@A
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"mainFile": "test.kt",
|
||||
"type": "MOVE_KOTLIN_NESTED_CLASS",
|
||||
"outerInstanceParameter": "a",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
Reference in New Issue
Block a user