Join Slack
Communities
Powered by
```if (foo != null) { // do something, foo now no...
# announcements
g
gildor
03/06/2018, 7:38 AM
Copy code
if (foo != null) { // do something, foo now non-null } else { otherStuff() }
Kotlin compiler understands such pattern and allows you to use foo as non-null after check (if foo is immutable)
Open in Slack
Previous
Next