We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From the book at Number Types
Number Types
The location where the L appears is unimportant. If one of the values is Long, the resulting expression is Long.
AtomicKotlinExamples/Examples/NumberTypes/UsingLongs.kt
Line 6 in 18d4e89
Not true, there is an actual result in case I move L val to the different place:
L
fun main() { val i = Int.MAX_VALUE println(i + i + 0L) // overflow, because of math rule }
Anyway, can you explain Type Inference (type rules) algo or point me to an authoritative resource?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
From the book at
Number Types
AtomicKotlinExamples/Examples/NumberTypes/UsingLongs.kt
Line 6 in 18d4e89
Not true, there is an actual result in case I move
L
val to the different place:Anyway, can you explain Type Inference (type rules) algo or point me to an authoritative resource?
The text was updated successfully, but these errors were encountered: