Convert Member to Extension Intention: Drop open/final modifiers, add imports when necessary, transform Java-site calls

#KT-8876 Fixed
This commit is contained in:
Alexey Sedunov
2016-01-28 12:41:50 +03:00
parent 99e4c8c06d
commit 3e2036b6ec
14 changed files with 143 additions and 1 deletions
@@ -0,0 +1,5 @@
package x
interface A {
fun <caret>foo(n: Int)
}
@@ -0,0 +1,9 @@
package y;
import x.A;
class J {
static void foo(A a) {
a.foo(1);
}
}
@@ -0,0 +1,7 @@
package y
import x.A
fun bar(a: A) {
a.foo(1)
}