From 52a07e31c7e78cf1b5b0e39c14f12bd8ae776655 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Wed, 18 Nov 2020 16:24:08 +0300 Subject: [PATCH] [FIR] Remove D_I_EXPRESSION_TYPE from qualified calls in spec test data In FIR, the source of FirFunctionCall is set to call's selector. In practice, sometimes (e.g. for DEBUG_INFO_CALL) we expect the selector as the source, and sometimes (e.g. for DEBUG_INFO_EXPRESSION_TYPE) we expect the whole qualified call as the source. Also, some diagnostics, like REDUNDANT_CALL_OF_CONVERSION_METHOD, are expected to be reported on a selector, not on a whole call. At this moment we ignore the problem & just don't support DEBUG_INFO_EXPRESSION_TYPE for qualified calls. --- .../algorithm-of-msc-selection/p-11/pos/4.2.fir.kt | 8 ++++---- .../algorithm-of-msc-selection/p-12/pos/2.2.fir.kt | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-11/pos/4.2.fir.kt b/compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-11/pos/4.2.fir.kt index 2f8419a07c8..b01c02024a4 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-11/pos/4.2.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-11/pos/4.2.fir.kt @@ -64,16 +64,16 @@ fun case2(case: Case2) { case.boo.boo(x = 1, y = 2) case.apply { 1.boo(1, 1) } - case.apply { 1.boo(1, 1) } + case.apply { 1.boo(1, 1) } case.let { 1.boo(1, 1) } - case.let { 1.boo(1, 1) } + case.let { 1.boo(1, 1) } case.also { 1.boo(1, 1) } - case.also { 1.boo(1, 1) } + case.also { 1.boo(1, 1) } case.run { 1.boo(1, 1) } - case.run { 1.boo(1, 1) } + case.run { 1.boo(1, 1) } } // FILE: TestCase1.kt diff --git a/compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-12/pos/2.2.fir.kt b/compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-12/pos/2.2.fir.kt index 6b0541d5f9d..bcafafd5692 100644 --- a/compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-12/pos/2.2.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-12/pos/2.2.fir.kt @@ -56,16 +56,16 @@ fun case2(case: Case2) { case.boo.boo(x = 1, y = 2) case.apply { 1.boo(1, 1) } - case.apply { 1.boo(1, 1) } + case.apply { 1.boo(1, 1) } case.let { 1.boo(1, 1) } - case.let { 1.boo(1, 1) } + case.let { 1.boo(1, 1) } case.also { 1.boo(1, 1) } - case.also { 1.boo(1, 1) } + case.also { 1.boo(1, 1) } case.run { 1.boo(1, 1) } - case.run { 1.boo(1, 1) } + case.run { 1.boo(1, 1) } } // FILE: TestCase1.kt