[FIR] Allow Int? === null
It was decided to allow this comparison duting the last DM. ^KT-62646
This commit is contained in:
committed by
Space Team
parent
4abfb2534a
commit
6607c8a056
+1
-1
@@ -1,7 +1,7 @@
|
||||
// LANGUAGE: -ReportErrorsForComparisonOperators
|
||||
|
||||
fun nullableNothingIdentity(a: Int, b: Nothing?) {
|
||||
<!FORBIDDEN_IDENTITY_EQUALS_WARNING, SENSELESS_COMPARISON!>a === b<!>
|
||||
<!SENSELESS_COMPARISON!>a === b<!>
|
||||
}
|
||||
|
||||
fun samePrimitiveIdentity(a: Int, b: Int) {
|
||||
|
||||
Reference in New Issue
Block a user