https://kotlinlang.org logo
Title
g

Guru

03/19/2019, 12:20 PM
Obviviously its a second time declaration and it wont compile.
r

Ruckus

03/19/2019, 12:42 PM
Use a different variable names. The destructured names do not have to match the originals. (Destructuring is position based)
g

Guru

03/20/2019, 3:33 AM
using different variable names wont make a sense from a real world context point of view. But if we can destructure using var would do just fine which we dont have at present. support ticket is created for this. https://youtrack.jetbrains.com/issue/KT-11362
r

Ruckus

03/20/2019, 3:16 PM
using different variable names wont make a sense from a real world context point of view
Why not?