Last active
October 7, 2021 12:14
-
-
Save nbness2/95f09695ae914bf15a1a6e722b70408e to your computer and use it in GitHub Desktop.
Maybe Null String From In Kotlin
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
fun main() { | |
val maybeNull: String = MaybeNull.maybeNullString() // allowed because compiler will assume you know what's happening with the `String!` | |
println(maybeNull) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment