Suggest to use "-Xskip-metadata-version-check" on incompatible classes in classpath

This commit is contained in:
Alexander Udalov
2016-12-08 12:11:06 +03:00
parent 830d2f6603
commit 513ebb9729
6 changed files with 27 additions and 9 deletions
@@ -1,3 +1,4 @@
error: incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
compiler/testData/compileKotlinAgainstCustomBinaries/wrongMetadataVersion/source.kt:5:16: error: class 'a.A' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 42.0.0, expected version is $ABI_VERSION$.
The class is loaded from $TMP_DIR$/library-after.jar!/a/A.class
fun baz(param: A, nested: A.Nested) {