Last active
October 18, 2019 07:16
-
-
Save mirokolodii/ba509654fe28998cd68be097a642a29e to your computer and use it in GitHub Desktop.
Switch to Kotlin #2.4
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
Class Test(val someInt: Int) | |
val test1: Test // warning: no default value, should be initialized | |
// with non-null value before first use | |
val test2: Test = null // error: non-nullable type can't hold null value | |
val test3: Test? = null // valid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment