From 5e1e8e8f618c60d9414f773cad86ab1382c65717 Mon Sep 17 00:00:00 2001 From: Nikolay Lunyak Date: Wed, 22 Nov 2023 15:53:14 +0200 Subject: [PATCH] [FIR] Highlight the weirdness of one test The thing is, in a box test there is a proper `UNRESOLVED_REFERENCE` on `M2().a.m2()` in K1 as well, but it's not present in diagnostic tests. And also, there's no error in the Kotlin IntelliJ plugin when viewing such code. It looks dangerous, but since this code is about classes with identical fqNames, and since nothing sus is really compiled, we can probably ignore this problem. It's unlikely that it impacts much. --- .../diagnostics/tests/multimodule/duplicateClass/members.fir.kt | 1 + .../diagnostics/tests/multimodule/duplicateClass/members.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/compiler/testData/diagnostics/tests/multimodule/duplicateClass/members.fir.kt b/compiler/testData/diagnostics/tests/multimodule/duplicateClass/members.fir.kt index eb795c7bbe0..bd5ed142d45 100644 --- a/compiler/testData/diagnostics/tests/multimodule/duplicateClass/members.fir.kt +++ b/compiler/testData/diagnostics/tests/multimodule/duplicateClass/members.fir.kt @@ -31,6 +31,7 @@ import p.* fun test(a: A) { a.m1() + a.m2() M1().a.m1() diff --git a/compiler/testData/diagnostics/tests/multimodule/duplicateClass/members.kt b/compiler/testData/diagnostics/tests/multimodule/duplicateClass/members.kt index 88a98399c37..7af842f9610 100644 --- a/compiler/testData/diagnostics/tests/multimodule/duplicateClass/members.kt +++ b/compiler/testData/diagnostics/tests/multimodule/duplicateClass/members.kt @@ -31,6 +31,7 @@ import p.* fun test(a: A) { a.m1() + a.m2() M1().a.m1()