[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
@@ -35,7 +35,7 @@ fun case_2() {
|
||||
do {
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any?")!>x<!>
|
||||
x = x<!UNSAFE_CALL!>.<!>equals(10)
|
||||
} while (<!FORBIDDEN_IDENTITY_EQUALS_WARNING, SENSELESS_COMPARISON!>x !== null<!>)
|
||||
} while (<!SENSELESS_COMPARISON!>x !== null<!>)
|
||||
}
|
||||
|
||||
// TESTCASE NUMBER: 3
|
||||
@@ -67,7 +67,7 @@ fun case_5() {
|
||||
do {
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any?")!>x<!>
|
||||
x = x<!UNSAFE_CALL!>.<!>equals(10)
|
||||
} while (<!FORBIDDEN_IDENTITY_EQUALS_WARNING, SENSELESS_COMPARISON!>x !== null<!>)
|
||||
} while (<!SENSELESS_COMPARISON!>x !== null<!>)
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -95,7 +95,7 @@ fun case_7() {
|
||||
do {
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any?")!>x<!>
|
||||
x = x<!UNSAFE_CALL!>.<!>equals(10)
|
||||
} while (<!FORBIDDEN_IDENTITY_EQUALS_WARNING, SENSELESS_COMPARISON!>x !== null<!>)
|
||||
} while (<!SENSELESS_COMPARISON!>x !== null<!>)
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -123,7 +123,7 @@ fun case_9() {
|
||||
do {
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any?")!>x<!>
|
||||
x = x<!UNSAFE_CALL!>.<!>equals(10)
|
||||
} while (<!FORBIDDEN_IDENTITY_EQUALS_WARNING, SENSELESS_COMPARISON!>x !== null<!>)
|
||||
} while (<!SENSELESS_COMPARISON!>x !== null<!>)
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user