Report error on generating calls to binary incompatible classes

This commit is contained in:
Alexander Udalov
2016-01-13 22:11:23 +03:00
parent 4bd1d064bb
commit e17cd12c3c
15 changed files with 315 additions and 49 deletions
+7
View File
@@ -0,0 +1,7 @@
package library
class A {
fun member() {}
}
fun topLevel() {}
+6
View File
@@ -0,0 +1,6 @@
import library.*
fun test() {
A().member()
topLevel()
}
+3
View File
@@ -0,0 +1,3 @@
$TESTDATA_DIR$/library/A.class: error: class 'library/A' was compiled with an incompatible version of Kotlin. The binary version of its bytecode is 42.0.0, expected version is $ABI_VERSION$
$TESTDATA_DIR$/library/AKt.class: error: class 'library/AKt' was compiled with an incompatible version of Kotlin. The binary version of its bytecode is 42.0.0, expected version is $ABI_VERSION$
COMPILATION_ERROR