Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assigining null value in Kotlin #51

Open
shmehdi01 opened this issue Jun 12, 2019 · 1 comment
Open

Assigining null value in Kotlin #51

shmehdi01 opened this issue Jun 12, 2019 · 1 comment

Comments

@shmehdi01
Copy link

   var otherName : String?
   otherName = null

It should be like this if I'm not wrong ?

  var otherName : String? = null
@warhero
Copy link
Contributor

warhero commented Aug 21, 2019

Both are valid, in the example it is separated into Assignment and declaration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants