Fix maven tests
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<kotlin.compiler.apiVersion>1.3</kotlin.compiler.apiVersion>
|
<kotlin.compiler.apiVersion>1.4</kotlin.compiler.apiVersion>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|||||||
+2
-3
@@ -1,5 +1,4 @@
|
|||||||
fun test2(s: Sequence<Int>) {
|
fun test2() {
|
||||||
s.map { it }
|
"".uppercase()
|
||||||
s.shuffled()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
source(new File(basedir, "../../../verify-common.bsh").getAbsolutePath());
|
source(new File(basedir, "../../../verify-common.bsh").getAbsolutePath());
|
||||||
|
|
||||||
assertBuildLogHasLine("[INFO] BUILD FAILURE");
|
assertBuildLogHasLine("[INFO] BUILD FAILURE");
|
||||||
assertBuildLogHasLineThatContains("Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:");
|
assertBuildLogHasLineThatContains("Unresolved reference: uppercase");
|
||||||
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");
|
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<kotlin.compiler.languageVersion>1.3</kotlin.compiler.languageVersion>
|
<kotlin.compiler.languageVersion>1.5</kotlin.compiler.languageVersion>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|||||||
+1
-7
@@ -1,7 +1 @@
|
|||||||
fun breakInWhenFrom14() {
|
fun <T> f(t: T): T!! = t!!
|
||||||
while (true) {
|
|
||||||
when {
|
|
||||||
true -> break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
source(new File(basedir, "../../../verify-common.bsh").getAbsolutePath());
|
source(new File(basedir, "../../../verify-common.bsh").getAbsolutePath());
|
||||||
|
|
||||||
assertBuildLogHasLine("[INFO] BUILD FAILURE");
|
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");
|
||||||
|
|||||||
Reference in New Issue
Block a user