Is it a known bug that this terminates at `UInt.MA...
# announcements
r
Is it a known bug that this terminates at
UInt.MAX_VALUE
instead of
UByte.MAX_VALUE
?
Copy code
fun main() {
    for (x in UByte.MIN_VALUE..UByte.MAX_VALUE) {
        println(x)
    }
}
s
It works for me…. it prints out the value
0
through `255`….
I ran it using Android Studio, not on the kotlin playground
How long does it take until it gets to UInt.MAX_VALUE?
It works on Android Studio; I tried Kotlin version 1.2.1 and 1.3.0-M1
l
I tried it in IntelliJ and got the same (unexpected) result, but the IDE screams about unsigned types being experimental, so I guess bugs are to be expected
s
Weird that running it in Android Studio works fine….
Done 🙂
Also, I run it on a Mac
When you replace UByte.MIN_VALUE and UByte.MAX_VALUE with 0 and 255, it works fine
How do you get Kotlin 1.3.31… it doesn’t exist on my end…
NVM… i was talking about Coroutines version…. 😕 🙂
going to Kotlin 1.3.31 also shows the problem on my end