From 8ec7d128f51db3813e5bb1acd319793fb9588720 Mon Sep 17 00:00:00 2001 From: Nikolay Lunyak Date: Fri, 20 Oct 2023 14:39:49 +0300 Subject: [PATCH] [FIR] Add one more missed case --- .../testsWithStdLib/equalityCompatibilityCommonCases.fir.kt | 3 +++ .../testsWithStdLib/equalityCompatibilityCommonCases.kt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/compiler/testData/diagnostics/testsWithStdLib/equalityCompatibilityCommonCases.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/equalityCompatibilityCommonCases.fir.kt index 4c095344c20..05c2e85f9c4 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/equalityCompatibilityCommonCases.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/equalityCompatibilityCommonCases.fir.kt @@ -110,3 +110,6 @@ fun incompatibleEnumAndUnrelatedInterfaceThroughTypeParameter(x: G?, i: x == i } +fun incompatibleEnumAndUnrelatedInterface(x: G?, i: A?) { + x == i +} diff --git a/compiler/testData/diagnostics/testsWithStdLib/equalityCompatibilityCommonCases.kt b/compiler/testData/diagnostics/testsWithStdLib/equalityCompatibilityCommonCases.kt index 6fe6db70755..5f66804507e 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/equalityCompatibilityCommonCases.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/equalityCompatibilityCommonCases.kt @@ -110,3 +110,6 @@ fun incompatibleEnumAndUnrelatedInterfaceThroughTypeParameter(x: G?, i: x == i } +fun incompatibleEnumAndUnrelatedInterface(x: G?, i: A?) { + x == i +}