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:
+5
@@ -0,0 +1,5 @@
|
||||
package x
|
||||
|
||||
interface A {
|
||||
fun <caret>foo(n: Int)
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package y;
|
||||
|
||||
import x.A;
|
||||
|
||||
class J {
|
||||
static void foo(A a) {
|
||||
a.foo(1);
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package y
|
||||
|
||||
import x.A
|
||||
|
||||
fun bar(a: A) {
|
||||
a.foo(1)
|
||||
}
|
||||
Reference in New Issue
Block a user