Join Slack
Powered by
`val (a,b) = Pair("hey", "you")` why is this code ...
# announcements
c
christophsturm
05/09/2017, 10:48 AM
val (a,b) = Pair("hey", "you")
why is this code not valid on class level?
u
umar
05/09/2017, 6:28 PM
christophsturm: Top level declarations are compiled to static members of generated classes. So in kotlin you can't use destructuring declaration on class members.
Open in Slack
Previous
Next