Skip to content

Instantly share code, notes, and snippets.

@prateek54
Last active September 17, 2020 08:12
Show Gist options
  • Save prateek54/a70dd1a83b5cd563c1f6753086e34912 to your computer and use it in GitHub Desktop.
Save prateek54/a70dd1a83b5cd563c1f6753086e34912 to your computer and use it in GitHub Desktop.
Null Safety a battle in Kotlin 2
var timeStone: String = "Dr Strange"
timeStone = null
//Here thanos(null value) will destroy our timeStone then we can't use gaunet (compilation error)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment