Report pre-release errors if release LV is used

#KT-21267 Fixed
This commit is contained in:
Alexander Udalov
2017-11-15 12:50:23 +01:00
parent 64a8008a8a
commit d386712903
15 changed files with 80 additions and 26 deletions
@@ -0,0 +1,5 @@
package a
class A
fun A.foo() = ""
@@ -0,0 +1,7 @@
package usage
import a.*
fun baz(param: A) {
param.foo()
}
@@ -0,0 +1,8 @@
error: incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
compiler/testData/compileKotlinAgainstCustomBinaries/preReleaseCompilerAgainstPreReleaseLibraryStableLanguageVersion/source.kt:5:16: error: class 'a.A' is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler
fun baz(param: A) {
^
compiler/testData/compileKotlinAgainstCustomBinaries/preReleaseCompilerAgainstPreReleaseLibraryStableLanguageVersion/source.kt:6:5: error: class 'a.AKt' is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler
foo()
^
COMPILATION_ERROR
@@ -0,0 +1,7 @@
package usage
import a.*
fun baz(param: A) {
foo()
}