Last active
September 17, 2020 08:12
-
-
Save prateek54/a70dd1a83b5cd563c1f6753086e34912 to your computer and use it in GitHub Desktop.
Null Safety a battle in Kotlin 2
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
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