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,8 @@
package x
interface A {
}
fun A.foo(n: Int) {
throw UnsupportedOperationException()
}
@@ -0,0 +1,10 @@
package y;
import x.A;
import x.TestKt;
class J {
static void foo(A a) {
TestKt.foo(a, 1);
}
}
@@ -0,0 +1,8 @@
package y
import x.A
import x.foo
fun bar(a: A) {
a.foo(1)
}