diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-apiVersion/src/main/kotlin/main.kt b/libraries/tools/kotlin-maven-plugin-test/src/it/test-apiVersion/src/main/kotlin/main.kt index a9003dded73..a9bcc41867a 100644 --- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-apiVersion/src/main/kotlin/main.kt +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-apiVersion/src/main/kotlin/main.kt @@ -1,14 +1,5 @@ -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) +fun test2(s: Sequence) { + s.map { it } + s.shuffled() } + diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-apiVersion/verify.bsh b/libraries/tools/kotlin-maven-plugin-test/src/it/test-apiVersion/verify.bsh index 192c8ff5002..35221bfc555 100644 --- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-apiVersion/verify.bsh +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-apiVersion/verify.bsh @@ -1,4 +1,7 @@ source(new File(basedir, "../../../verify-common.bsh").getAbsolutePath()); assertBuildLogHasLine("[INFO] BUILD FAILURE"); -assertBuildLogHasLineThatContains("feature \"function types with big arity\" is only available since API version 1.3"); +assertBuildLogHasLineThatContains("Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:"); +assertBuildLogHasLineThatContains("public fun Iterable.shuffled(): List defined in kotlin.collections"); +assertBuildLogHasLineThatContains("public fun Iterable.shuffled(random: java.util.Random): List defined in kotlin.collections"); +assertBuildLogHasLineThatContains("public fun Iterable.shuffled(random: kotlin.random.Random): List defined in kotlin.collections"); diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-plugins/expected.log b/libraries/tools/kotlin-maven-plugin-test/src/it/test-plugins/expected.log index a3f5a309353..ccb1f4ffd51 100644 --- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-plugins/expected.log +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-plugins/expected.log @@ -1,3 +1,10 @@ +[WARNING] Runtime JAR files in the classpath should have the same version. These files were found in the classpath: +/local-repo/org/jetbrains/kotlin/kotlin-stdlib/@snapshot@/kotlin-stdlib-@snapshot@.jar (version 1.5) +/local-repo/org/jetbrains/kotlin/kotlin-stdlib-common/@snapshot@/kotlin-stdlib-common-@snapshot@.jar (version 1.5) +/local-repo/org/jetbrains/kotlin/kotlin-script-runtime/@snapshot@/kotlin-script-runtime-@snapshot@.jar (version 1.5) +/local-repo/org/jetbrains/kotlin/kotlin-reflect/@snapshot@/kotlin-reflect-@snapshot@.jar (version 1.5) +/local-repo/org/jetbrains/kotlin/kotlin-coroutines-experimental-compat/1.4.20/kotlin-coroutines-experimental-compat-1.4.20.jar (version 1.4) +[WARNING] Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath [WARNING] No sources found skipping Kotlin compile [INFO] Applicability test for project use-test-extension [INFO] Applied plugin: 'test-me'