From d76db0e011a09494359af805e9b2e8614debbed7 Mon Sep 17 00:00:00 2001 From: "Denis.Zharkov" Date: Thu, 27 May 2021 16:27:17 +0300 Subject: [PATCH] FIR: Mute backend tests relevant to new INFERENCE_NO_INFORMATION_FOR_PARAMETER See KT-46967 and KT-46996 --- .../testData/codegen/box/annotations/genericAnnotations.kt | 2 ++ .../codegen/box/arrays/nonLocalReturnArrayConstructor.kt | 2 ++ .../builderInference/builderCallAsReturnTypeInLocalClass.kt | 3 ++- .../codegen/box/inference/builderInference/kt42139.kt | 3 ++- .../codegen/box/inference/builderInference/kt47052.kt | 3 ++- .../codegen/box/typealias/typeAliasConstructorForArray.kt | 4 +++- .../expressions/specializedTypeAliasConstructorCall.kt | 5 ++++- 7 files changed, 17 insertions(+), 5 deletions(-) diff --git a/compiler/testData/codegen/box/annotations/genericAnnotations.kt b/compiler/testData/codegen/box/annotations/genericAnnotations.kt index 1f297d6ced8..e82c4606c47 100644 --- a/compiler/testData/codegen/box/annotations/genericAnnotations.kt +++ b/compiler/testData/codegen/box/annotations/genericAnnotations.kt @@ -1,3 +1,5 @@ +// IGNORE_BACKEND_FIR: JVM_IR +// See KT-46967 // MODULE: lib // FILE: l1.kt package ann diff --git a/compiler/testData/codegen/box/arrays/nonLocalReturnArrayConstructor.kt b/compiler/testData/codegen/box/arrays/nonLocalReturnArrayConstructor.kt index d981f577025..c1d80b86807 100644 --- a/compiler/testData/codegen/box/arrays/nonLocalReturnArrayConstructor.kt +++ b/compiler/testData/codegen/box/arrays/nonLocalReturnArrayConstructor.kt @@ -1,3 +1,5 @@ +// IGNORE_BACKEND_FIR: JVM_IR +// See KT-46996 // DONT_TARGET_EXACT_BACKEND: WASM // WASM_MUTE_REASON: UNIT_ISSUES typealias ArrayS = Array diff --git a/compiler/testData/codegen/box/inference/builderInference/builderCallAsReturnTypeInLocalClass.kt b/compiler/testData/codegen/box/inference/builderInference/builderCallAsReturnTypeInLocalClass.kt index a110715d584..38b4f68f9a6 100644 --- a/compiler/testData/codegen/box/inference/builderInference/builderCallAsReturnTypeInLocalClass.kt +++ b/compiler/testData/codegen/box/inference/builderInference/builderCallAsReturnTypeInLocalClass.kt @@ -1,5 +1,6 @@ // WITH_RUNTIME // DONT_TARGET_EXACT_BACKEND: WASM +// IGNORE_BACKEND_FIR: JVM_IR @OptIn(ExperimentalStdlibApi::class) fun foo1() { @@ -51,4 +52,4 @@ fun box(): String { foo3() foo4() return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/box/inference/builderInference/kt42139.kt b/compiler/testData/codegen/box/inference/builderInference/kt42139.kt index 9bd1e6c2b2a..dc55f6a5600 100644 --- a/compiler/testData/codegen/box/inference/builderInference/kt42139.kt +++ b/compiler/testData/codegen/box/inference/builderInference/kt42139.kt @@ -1,6 +1,7 @@ // DONT_TARGET_EXACT_BACKEND: WASM // !LANGUAGE: +UnrestrictedBuilderInference // WITH_RUNTIME +// IGNORE_BACKEND_FIR: JVM_IR fun select(vararg x: R) = x[0] fun myEmptyList(): List = emptyList() @@ -23,4 +24,4 @@ fun box(): String { f2() f3() return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/box/inference/builderInference/kt47052.kt b/compiler/testData/codegen/box/inference/builderInference/kt47052.kt index d4debffc63e..896389ee16d 100644 --- a/compiler/testData/codegen/box/inference/builderInference/kt47052.kt +++ b/compiler/testData/codegen/box/inference/builderInference/kt47052.kt @@ -1,5 +1,6 @@ // DONT_TARGET_EXACT_BACKEND: WASM // WITH_RUNTIME +// IGNORE_BACKEND_FIR: JVM_IR public inline fun > flatMapTo1(destination: C, transform: (List) -> Iterable) {} @@ -9,4 +10,4 @@ fun box(): String { flatMapTo1(this) { it } } return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/codegen/box/typealias/typeAliasConstructorForArray.kt b/compiler/testData/codegen/box/typealias/typeAliasConstructorForArray.kt index 8be95d2e91d..c7be3d753df 100644 --- a/compiler/testData/codegen/box/typealias/typeAliasConstructorForArray.kt +++ b/compiler/testData/codegen/box/typealias/typeAliasConstructorForArray.kt @@ -1,3 +1,5 @@ +// IGNORE_BACKEND_FIR: JVM_IR +// See KT-46996 typealias BoolArray = Array typealias IArray = IntArray typealias MyArray = Array @@ -13,4 +15,4 @@ fun box(): String { if (ma[0] != 42) return "Fail #2" return "OK" -} \ No newline at end of file +} diff --git a/compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.kt b/compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.kt index 8a7f4bdff7d..0d491f00a68 100644 --- a/compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.kt +++ b/compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.kt @@ -1,5 +1,8 @@ +// IGNORE_BACKEND_FIR: ANY +// See KT-46996 + class Cell(val value: T) typealias IntAlias = Cell -fun test() = IntAlias(42) \ No newline at end of file +fun test() = IntAlias(42)