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,19 @@
package test
inline fun <T, R> with(receiver: T, block: T.() -> R): R = receiver.block()
class A() {
fun X.bar() {}
}
class X {
fun Int.foo() {}
inner class Y {
fun test() {
1.foo()
with(1) { foo() }
with(A()) { bar() }
}
}
}
@@ -0,0 +1,19 @@
package test
inline fun <T, R> with(receiver: T, block: T.() -> R): R = receiver.block()
class A() {
fun X.bar() {}
}
class X {
fun Int.foo() {}
inner class <caret>Y {
fun test() {
1.foo()
with(1) { foo() }
with(A()) { bar() }
}
}
}
@@ -0,0 +1,3 @@
Call with two implicit receivers won't be processed: bar()
Call with two implicit receivers won't be processed: foo()
Qualified call won't be processed: 1.foo()
@@ -0,0 +1,6 @@
{
"mainFile": "test.kt",
"type": "MOVE_KOTLIN_NESTED_CLASS",
"outerInstanceParameter": "a",
"withRuntime": "true"
}