From f9b66d57cf5634b91adbd0a7c400a0ee904f039b Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Fri, 8 Nov 2019 20:52:22 +0100 Subject: [PATCH] Fix test data for -Xuse-mixed-named-arguments Remove incorrect jar clash warning and avoid unrelated unused parameter warnings --- .../testData/cli/jvm/useMixedNamedArgumentsFlag.kt | 4 ++-- .../testData/cli/jvm/useMixedNamedArgumentsFlag.out | 11 ----------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/compiler/testData/cli/jvm/useMixedNamedArgumentsFlag.kt b/compiler/testData/cli/jvm/useMixedNamedArgumentsFlag.kt index 3fd75b053f7..a1901cd6da7 100644 --- a/compiler/testData/cli/jvm/useMixedNamedArgumentsFlag.kt +++ b/compiler/testData/cli/jvm/useMixedNamedArgumentsFlag.kt @@ -1,5 +1,5 @@ -fun foo(x: Int, y: Int, z: Int) {} +fun foo(x: Int, y: Int, z: Int): Int = x + y + z fun test() { foo(1, y = 2, 3) -} \ No newline at end of file +} diff --git a/compiler/testData/cli/jvm/useMixedNamedArgumentsFlag.out b/compiler/testData/cli/jvm/useMixedNamedArgumentsFlag.out index 549db9dc8cd..d86bac9de59 100644 --- a/compiler/testData/cli/jvm/useMixedNamedArgumentsFlag.out +++ b/compiler/testData/cli/jvm/useMixedNamedArgumentsFlag.out @@ -1,12 +1 @@ -warning: some JAR files in the classpath have the Kotlin Runtime library bundled into them. This may cause difficult to debug problems if there's a different version of the Kotlin Runtime library in the classpath. Consider removing these libraries from the classpath -dist/kotlinc/lib/kotlin-reflect.jar: warning: library has Kotlin runtime bundled into it -compiler/testData/cli/jvm/useMixedNamedArgumentsFlag.kt:1:9: warning: parameter 'x' is never used -fun foo(x: Int, y: Int, z: Int) {} - ^ -compiler/testData/cli/jvm/useMixedNamedArgumentsFlag.kt:1:17: warning: parameter 'y' is never used -fun foo(x: Int, y: Int, z: Int) {} - ^ -compiler/testData/cli/jvm/useMixedNamedArgumentsFlag.kt:1:25: warning: parameter 'z' is never used -fun foo(x: Int, y: Int, z: Int) {} - ^ OK