I'm learning kotlin, and was surprised when I got ...
# getting-started
m
I'm learning kotlin, and was surprised when I got the error "Destructuring declarations are only allowed for local variables/values". As in, I can put  
val (a, b) = "c" to "d"
 in a local context like  
main()
 but not at the top/package level. I don't see anything about about this in https://kotlinlang.org/docs/reference/multi-declarations.html . Is there a discussion (or just a different place in the docs) I should be looking at?