Fix isNegated psi method in KtWhenConditionInRange
^KT-34395 Fixed
This commit is contained in:
committed by
Victor Petukhov
parent
a10f37dd50
commit
fc7b836151
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
fun box(): String {
|
||||
val shouldBeTrue = 555555555555555555L in 123456789123456789L..987654321987654321L
|
||||
if (!shouldBeTrue) return "Fail 1"
|
||||
|
||||
@@ -29,8 +29,7 @@ FILE fqName:<root> fileName:/whenWithSubjectVariable.kt
|
||||
GET_VAR 'val y: kotlin.Any [val] declared in <root>.test' type=kotlin.Any origin=null
|
||||
then: CONST Int type=kotlin.Int value=3
|
||||
BRANCH
|
||||
if: ERROR_CALL 'Unresolved reference: <Inapplicable(INAPPLICABLE): [kotlin/ranges/IntRange.contains]>#' type=IrErrorType
|
||||
GET_VAR 'val y: kotlin.Any [val] declared in <root>.test' type=kotlin.Any origin=null
|
||||
if: ERROR_CALL 'Unresolved reference: <Unresolved name: not>#' type=IrErrorType
|
||||
then: CONST Int type=kotlin.Int value=4
|
||||
BRANCH
|
||||
if: CONST Boolean type=kotlin.Boolean value=true
|
||||
|
||||
Reference in New Issue
Block a user