Skip to content

Instantly share code, notes, and snippets.

@mirokolodii
Last active October 24, 2019 06:09
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/93affeac5ff367b7a940ca998752c1a9 to your computer and use it in GitHub Desktop.
Save mirokolodii/93affeac5ff367b7a940ca998752c1a9 to your computer and use it in GitHub Desktop.
Switch to Kotlin #2.3
val someStr1: String? = null // valid statement, notice a question mark after 'String'
val someStr2: String? // warning: no default value assigned. Should be initialized
// with some (nullable or non-nullable) value before its first use
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment