KT-36685 "Convert to a range check" transform hex range to int if it is compared with "Less" or "Greater"

#KT-36685 Fixed
This commit is contained in:
Vladimir Dolzhenko
2020-02-17 14:43:37 +01:00
committed by GitHub
6 changed files with 43 additions and 3 deletions
@@ -0,0 +1,4 @@
fun test(c: Int) {
if (<caret>c > 0b1101100000000000 && c < 0b1101110000000000) {
}
}
@@ -0,0 +1,4 @@
fun test(c: Int) {
if (c in 0b1101100000000001..0b1101101111111111) {
}
}
@@ -0,0 +1,4 @@
fun test(c: Int) {
if (<caret>c > 0xd800 && c < 0xdc00) {
}
}
@@ -0,0 +1,4 @@
fun test(c: Int) {
if (c in 0xd801..0xdbff) {
}
}