Fix maven tests

This commit is contained in:
Mikhael Bogdanov
2021-07-27 13:50:40 +02:00
parent a1bd728aef
commit 588952bc9a
6 changed files with 7 additions and 17 deletions
@@ -22,7 +22,7 @@
</dependencies>
<properties>
<kotlin.compiler.apiVersion>1.3</kotlin.compiler.apiVersion>
<kotlin.compiler.apiVersion>1.4</kotlin.compiler.apiVersion>
</properties>
<build>
@@ -1,5 +1,4 @@
fun test2(s: Sequence<Int>) {
s.map { it }
s.shuffled()
fun test2() {
"".uppercase()
}
@@ -1,7 +1,4 @@
source(new File(basedir, "../../../verify-common.bsh").getAbsolutePath());
assertBuildLogHasLine("[INFO] BUILD FAILURE");
assertBuildLogHasLineThatContains("Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:");
assertBuildLogHasLineThatContains("public fun <T> Iterable<TypeVariable(T)>.shuffled(): List<TypeVariable(T)> defined in kotlin.collections");
assertBuildLogHasLineThatContains("public fun <T> Iterable<TypeVariable(T)>.shuffled(random: java.util.Random): List<TypeVariable(T)> defined in kotlin.collections");
assertBuildLogHasLineThatContains("public fun <T> Iterable<TypeVariable(T)>.shuffled(random: kotlin.random.Random): List<TypeVariable(T)> defined in kotlin.collections");
assertBuildLogHasLineThatContains("Unresolved reference: uppercase");
@@ -22,7 +22,7 @@
</dependencies>
<properties>
<kotlin.compiler.languageVersion>1.3</kotlin.compiler.languageVersion>
<kotlin.compiler.languageVersion>1.5</kotlin.compiler.languageVersion>
</properties>
<build>
@@ -1,7 +1 @@
fun breakInWhenFrom14() {
while (true) {
when {
true -> break
}
}
}
fun <T> f(t: T): T!! = t!!
@@ -1,4 +1,4 @@
source(new File(basedir, "../../../verify-common.bsh").getAbsolutePath());
assertBuildLogHasLine("[INFO] BUILD FAILURE");
assertBuildLogHasLineThatContains("'break' and 'continue' are not allowed in 'when' statements");
assertBuildLogHasLineThatContains("The feature \"definitely not null type parameters\" is only available since language version 1.6");