Change unsupported 1.0 version in maven plugin tests
KT-36146
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
</dependencies>
|
||||
|
||||
<properties>
|
||||
<kotlin.compiler.apiVersion>1.0</kotlin.compiler.apiVersion>
|
||||
<kotlin.compiler.apiVersion>1.2</kotlin.compiler.apiVersion>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
|
||||
+13
-3
@@ -1,4 +1,14 @@
|
||||
fun useApiFrom11() {
|
||||
mapOf<Any, Any>().toMutableMap()
|
||||
}
|
||||
class A
|
||||
|
||||
fun foo(
|
||||
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||
p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A,
|
||||
p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A
|
||||
) {}
|
||||
|
||||
fun bar(x: Any) {}
|
||||
|
||||
fun test(vararg x: Function30<*, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, Unit>) {
|
||||
bar(::foo)
|
||||
bar(x)
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
source(new File(basedir, "../../../verify-common.bsh").getAbsolutePath());
|
||||
|
||||
assertBuildLogHasLine("[INFO] BUILD FAILURE");
|
||||
assertBuildLogHasLineThatContains("Unresolved reference: toMutableMap");
|
||||
assertBuildLogHasLineThatContains("feature \"function types with big arity\" is only available since API version 1.3");
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
</dependencies>
|
||||
|
||||
<properties>
|
||||
<kotlin.compiler.languageVersion>1.0</kotlin.compiler.languageVersion>
|
||||
<kotlin.compiler.languageVersion>1.3</kotlin.compiler.languageVersion>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
|
||||
+7
-7
@@ -1,7 +1,7 @@
|
||||
sealed class Base
|
||||
|
||||
class Derived : Base()
|
||||
|
||||
fun useApiFrom11() {
|
||||
mapOf<Any, Any>().toMutableMap()
|
||||
}
|
||||
fun breakInWhenFrom14() {
|
||||
while (true) {
|
||||
when {
|
||||
true -> break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
source(new File(basedir, "../../../verify-common.bsh").getAbsolutePath());
|
||||
|
||||
assertBuildLogHasLine("[INFO] BUILD FAILURE");
|
||||
assertBuildLogHasLineThatContains("This type is sealed");
|
||||
assertBuildLogHasLineThatContains("Unresolved reference: toMutableMap");
|
||||
assertBuildLogHasLineThatContains("'break' and 'continue' are not allowed in 'when' statements");
|
||||
|
||||
Reference in New Issue
Block a user