Move: Nested classes support
#KT-9027 In Progress
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
package test
|
||||
|
||||
class A {
|
||||
companion object {
|
||||
fun Int.extFoo(n: Int) {}
|
||||
|
||||
val Int.extBar: Int get() = 1
|
||||
}
|
||||
|
||||
class B {
|
||||
fun test() {
|
||||
1.extFoo(1.extBar)
|
||||
}
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package test
|
||||
|
||||
class A {
|
||||
companion object {
|
||||
fun Int.extFoo(n: Int) {}
|
||||
|
||||
val Int.extBar: Int get() = 1
|
||||
}
|
||||
|
||||
class <caret>B {
|
||||
fun test() {
|
||||
1.extFoo(1.extBar)
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Implicit companion object will be inaccessible: extBar
|
||||
Implicit companion object will be inaccessible: extFoo
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"mainFile": "test.kt",
|
||||
"type": "MOVE_KOTLIN_NESTED_CLASS",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
Reference in New Issue
Block a user