From 7c05c6420a1c933dec2b16439eb0b207ff626dfa Mon Sep 17 00:00:00 2001 From: "Denis.Zharkov" Date: Thu, 13 May 2021 15:41:15 +0300 Subject: [PATCH] FIR: Update test data (incorrect NEW_INFERENCE_ERROR with self types) ^KT-46661 Relates --- .../tests/inference/capturedTypesInSelfType.fir.kt | 8 ++++++++ .../tests/inference/capturedTypesInSelfType.kt | 3 +-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.fir.kt diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.fir.kt b/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.fir.kt new file mode 100644 index 00000000000..df80c1c4113 --- /dev/null +++ b/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.fir.kt @@ -0,0 +1,8 @@ +// WITH_RUNTIME +// !DIAGNOSTICS: -UNUSED_VARIABLE + +class Foo>(val values: Array) + +fun foo(x: Array>) { + val y = Foo(x) +} diff --git a/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.kt b/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.kt index fe88e3bdabc..429a229c0c3 100644 --- a/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.kt +++ b/compiler/testData/diagnostics/tests/inference/capturedTypesInSelfType.kt @@ -1,9 +1,8 @@ -// FIR_IDENTICAL // WITH_RUNTIME // !DIAGNOSTICS: -UNUSED_VARIABLE class Foo>(val values: Array) fun foo(x: Array>) { - val y = Foo(x) + val y = Foo(x) }