[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
@@ -15,8 +15,8 @@ fun f(): Unit {
|
||||
|
||||
<!EQUALITY_NOT_APPLICABLE!>A() == 1<!>
|
||||
|
||||
<!EQUALITY_NOT_APPLICABLE!>x === "1"<!>
|
||||
<!EQUALITY_NOT_APPLICABLE!>x !== "1"<!>
|
||||
<!FORBIDDEN_IDENTITY_EQUALS!>x === "1"<!>
|
||||
<!FORBIDDEN_IDENTITY_EQUALS!>x !== "1"<!>
|
||||
|
||||
<!IMPLICIT_BOXING_IN_IDENTITY_EQUALS!>x === 1<!>
|
||||
<!IMPLICIT_BOXING_IN_IDENTITY_EQUALS!>x !== 1<!>
|
||||
|
||||
Reference in New Issue
Block a user