[FIR] Ignore nullability in the definition of "identity-less"
The definition of a "builtin" already ignores nullability. `Int? === String?` must trigger a diagnostic by design.
This commit is contained in:
committed by
Space Team
parent
5ecedcbb16
commit
8d04ab3142
@@ -123,7 +123,7 @@ fun test_10(a: Int?, b: Int?) {
|
||||
}
|
||||
b<!UNSAFE_CALL!>.<!>inc()
|
||||
|
||||
if (a === b) {
|
||||
if (<!FORBIDDEN_IDENTITY_EQUALS_WARNING!>a === b<!>) {
|
||||
b<!UNSAFE_CALL!>.<!>inc()
|
||||
}
|
||||
b<!UNSAFE_CALL!>.<!>inc()
|
||||
@@ -133,7 +133,7 @@ fun test_10(a: Int?, b: Int?) {
|
||||
}
|
||||
b<!UNSAFE_CALL!>.<!>inc()
|
||||
|
||||
if (b === a) {
|
||||
if (<!FORBIDDEN_IDENTITY_EQUALS_WARNING!>b === a<!>) {
|
||||
b<!UNSAFE_CALL!>.<!>inc()
|
||||
}
|
||||
b<!UNSAFE_CALL!>.<!>inc()
|
||||
|
||||
Reference in New Issue
Block a user