Convert to range check: do not transform binaries/hexadecimals to decimals
#KT-36685 Fixed
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
fun test(c: Int) {
|
||||
if (<caret>c > 0b1101100000000000 && c < 0b1101110000000000) {
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
fun test(c: Int) {
|
||||
if (c in 0b1101100000000001..0b1101101111111111) {
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
fun test(c: Int) {
|
||||
if (<caret>c > 0xd800 && c < 0xdc00) {
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
fun test(c: Int) {
|
||||
if (c in 0xd801..0xdbff) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user