this post was submitted on 12 Jul 2023
2 points (100.0% liked)
Kotlin
665 readers
2 users here now
Kotlin is a statically typed programming language for the JVM, Android, JavaScript, and native.
Subreddit rules:
- Be civil
- No spam
- Stay on-topic
- No fluff
Resources:
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
For your example d I'm getting true. At least when using JVM. When switching to Wasm, both c and d result in false.
So it seems that in Kotlin UInt is not a Number, but at runtime on the JVM it is.