Created
October 24, 2019 06:57
-
-
Save mirokolodii/37f2b6a9057d9311be5a8af8cfea3368 to your computer and use it in GitHub Desktop.
Switch to Kotlin 2.9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val nonNullInt = 1 | |
val nullInt: Int? = null | |
if (nullInt == nonNullInt) { | |
println("Both are equal") | |
} else { | |
println("Not equal") // Result is 'Not equal' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment