Temporary hack to migrate functions to package kotlin.jvm.functions
Add a file in package 'kotlin.jvm.functions' to the project and replace
explicit imports of functions 'kotlin.Function{n}' to two imports 'kotlin.*'
and 'kotlin.jvm.functions.*', so that the codebase can be compiled both by the
old and by the new compiler
This commit is contained in:
+3
-2
@@ -1,6 +1,7 @@
|
||||
package a;
|
||||
|
||||
import kotlin.Function0;
|
||||
import kotlin.jvm.functions.*;
|
||||
import kotlin.*;
|
||||
|
||||
public class X {
|
||||
private A outer;
|
||||
@@ -9,4 +10,4 @@ public class X {
|
||||
this.outer = outer;
|
||||
System.out.println(f.invoke());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
package a;
|
||||
|
||||
import kotlin.Function0;
|
||||
import kotlin.jvm.functions.*;
|
||||
import kotlin.*;
|
||||
|
||||
public class A {
|
||||
}
|
||||
}
|
||||
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
package a;
|
||||
|
||||
import kotlin.Function0;
|
||||
import kotlin.jvm.functions.*;
|
||||
import kotlin.*;
|
||||
|
||||
public class A {
|
||||
public class <caret>X {
|
||||
@@ -8,4 +9,4 @@ public class A {
|
||||
System.out.println(f.invoke());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user