report presence of multiple different versions of kotlin-runtime on the classpath as compilation error if other compilation errors have occurred

This commit is contained in:
Dmitry Jemerov
2016-01-19 13:51:35 +01:00
parent 4f5b2ec4b4
commit ccef1ad49e
14 changed files with 117 additions and 22 deletions
@@ -0,0 +1,5 @@
$TESTDATA_DIR$/conflictingRuntimeVersions.kt
-classpath
$TESTDATA_DIR$/kotlin-runtime-4584-stub/kotlin-runtime.jar
-d
$TEMP_DIR$
@@ -0,0 +1,5 @@
error: conflicting versions of Kotlin runtime on classpath: compiler/testData/cli/jvm/kotlin-runtime-4584-stub/kotlin-runtime.jar, $PROJECT_DIR$/lib/kotlin-runtime.jar
compiler/testData/cli/jvm/conflictingRuntimeVersions.kt:1:9: error: unresolved reference: unresolvedFunction
val f = unresolvedFunction()
^
COMPILATION_ERROR
@@ -0,0 +1,5 @@
$TESTDATA_DIR$/simple.kt
-classpath
$TESTDATA_DIR$/kotlin-runtime-4584-stub/kotlin-runtime.jar
-d
$TEMP_DIR$
@@ -0,0 +1 @@
OK
@@ -0,0 +1 @@
val f = unresolvedFunction()