Tests with renamed method, incremental compilation between Kotlin and Java.
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
class WillBeUnresolved {
|
||||
void main() {
|
||||
test.TestPackage.f(":(");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
Cleaning output files:
|
||||
out/production/module/test/TestPackage$fun$*.class
|
||||
out/production/module/test/TestPackage.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/fun.kt
|
||||
End of files
|
||||
Compiling files:
|
||||
src/WillBeUnresolved.java
|
||||
End of files
|
||||
COMPILATION FAILED
|
||||
java:ERROR:$PROJECT/src/WillBeUnresolved.java:3: cannot find symbol
|
||||
symbol : method f(java.lang.String)
|
||||
location: class test.TestPackage
|
||||
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
fun f(s: String) {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
fun g(s: String) {
|
||||
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
class WillBeUnresolved {
|
||||
void main() {
|
||||
test.TestPackage.getProp();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
Cleaning output files:
|
||||
out/production/module/test/TestPackage$prop$*.class
|
||||
out/production/module/test/TestPackage.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/prop.kt
|
||||
End of files
|
||||
Compiling files:
|
||||
src/WillBeUnresolved.java
|
||||
End of files
|
||||
COMPILATION FAILED
|
||||
java:ERROR:$PROJECT/src/WillBeUnresolved.java:3: cannot find symbol
|
||||
symbol : method getProp()
|
||||
location: class test.TestPackage
|
||||
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
val prop = ":)"
|
||||
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
val prop1 = ":)"
|
||||
Reference in New Issue
Block a user