mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[inspection] Fix tests in ConvertTwoComparisonToRange inspection
Tests start failing after KTIJ-25447, because rangeUntil has more priority than until and now opt-in is not needed for rangeUntil. GitOrigin-RevId: 1a6cf8e1c82c3618fcd8661a5f45cbfbd6c223a8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
647f72fc68
commit
7bae0bd083
+1
@@ -1,4 +1,5 @@
|
||||
// WITH_STDLIB
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:-RangeUntilOperator
|
||||
fun foo(bar: Int, min: Int, max: Int) {
|
||||
min < bar && bar < max<caret>
|
||||
}
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// WITH_STDLIB
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:-RangeUntilOperator
|
||||
fun foo(bar: Int, min: Int, max: Int) {
|
||||
bar in (min + 1) until max
|
||||
}
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// WITH_STDLIB
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:-RangeUntilOperator
|
||||
val N = 42
|
||||
fun test(a: Int) = a >= 0 && a < N<caret>
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// WITH_STDLIB
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:-RangeUntilOperator
|
||||
val N = 42
|
||||
fun test(a: Int) = a in 0 until N
|
||||
Reference in New Issue
Block a user