Report error on generating calls to binary incompatible classes
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package library
|
||||
|
||||
class A {
|
||||
fun member() {}
|
||||
}
|
||||
|
||||
fun topLevel() {}
|
||||
@@ -0,0 +1,6 @@
|
||||
import library.*
|
||||
|
||||
fun test() {
|
||||
A().member()
|
||||
topLevel()
|
||||
}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user