diff --git a/compiler/testData/diagnostics/testsWithStdLib/equalityCompatibilityCommonCases.fir.kt b/compiler/testData/diagnostics/testsWithStdLib/equalityCompatibilityCommonCases.fir.kt index 5612209d2a5..748ff683e96 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/equalityCompatibilityCommonCases.fir.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/equalityCompatibilityCommonCases.fir.kt @@ -85,6 +85,11 @@ fun incompatibleIdentityRegardlessNullabilitySmartCast(a: Any?, b: Any?) { } } +fun incompatibleIdentityRegardlessNullabilityWithNull(a: Int?) { + a == null + a === null +} + fun incompatibleIdentityRegardlessNullabilityWithValueClasses(c: C?, d: D?) { c == d c === d diff --git a/compiler/testData/diagnostics/testsWithStdLib/equalityCompatibilityCommonCases.kt b/compiler/testData/diagnostics/testsWithStdLib/equalityCompatibilityCommonCases.kt index 5f66804507e..597b2552121 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/equalityCompatibilityCommonCases.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/equalityCompatibilityCommonCases.kt @@ -85,6 +85,11 @@ fun incompatibleIdentityRegardlessNullabilitySmartCast(a: Any?, b: Any?) { } } +fun incompatibleIdentityRegardlessNullabilityWithNull(a: Int?) { + a == null + a === null +} + fun incompatibleIdentityRegardlessNullabilityWithValueClasses(c: C?, d: D?) { c == d c === d