Move: Nested classes support

#KT-9027 In Progress
This commit is contained in:
Alexey Sedunov
2016-01-12 20:41:02 +03:00
parent 0304bd1dc1
commit d662b02e95
159 changed files with 2588 additions and 197 deletions
@@ -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)
}
}
}
@@ -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)
}
}
}
@@ -0,0 +1,2 @@
Implicit companion object will be inaccessible: extBar
Implicit companion object will be inaccessible: extFoo
@@ -0,0 +1,5 @@
{
"mainFile": "test.kt",
"type": "MOVE_KOTLIN_NESTED_CLASS",
"withRuntime": "true"
}