Skip to content

Instantly share code, notes, and snippets.

@mirokolodii
Created October 24, 2019 06:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mirokolodii/37f2b6a9057d9311be5a8af8cfea3368 to your computer and use it in GitHub Desktop.
Save mirokolodii/37f2b6a9057d9311be5a8af8cfea3368 to your computer and use it in GitHub Desktop.
Switch to Kotlin 2.9
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