From 5d76f979cf5b966ece5139d3fbc26b0bbcc37400 Mon Sep 17 00:00:00 2001 From: Anastasiya Shadrina Date: Thu, 18 Nov 2021 20:51:35 +0700 Subject: [PATCH] [Tests] Minor: add FIR_IDENTICAL to typeParameterAsContextReceiver.kt --- .../typeParameterAsContextReceiver.fir.kt | 11 ----------- .../typeParameterAsContextReceiver.kt | 1 + 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 compiler/testData/diagnostics/tests/extensions/contextReceivers/typeParameterAsContextReceiver.fir.kt diff --git a/compiler/testData/diagnostics/tests/extensions/contextReceivers/typeParameterAsContextReceiver.fir.kt b/compiler/testData/diagnostics/tests/extensions/contextReceivers/typeParameterAsContextReceiver.fir.kt deleted file mode 100644 index 924e2bef55e..00000000000 --- a/compiler/testData/diagnostics/tests/extensions/contextReceivers/typeParameterAsContextReceiver.fir.kt +++ /dev/null @@ -1,11 +0,0 @@ -// !LANGUAGE: +ContextReceivers -// IGNORE_BACKEND_FIR: JVM_IR - -context(T) -fun useContext(block: (T) -> Unit) { } - -fun test() { - with(42) { - useContext { i: Int -> i.toDouble() } - } -} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/extensions/contextReceivers/typeParameterAsContextReceiver.kt b/compiler/testData/diagnostics/tests/extensions/contextReceivers/typeParameterAsContextReceiver.kt index d38cd0b0e68..366cde034e4 100644 --- a/compiler/testData/diagnostics/tests/extensions/contextReceivers/typeParameterAsContextReceiver.kt +++ b/compiler/testData/diagnostics/tests/extensions/contextReceivers/typeParameterAsContextReceiver.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // !LANGUAGE: +ContextReceivers // IGNORE_BACKEND_FIR: JVM_IR