Simple question about REPL


#1

I have a code:

data class Pair(val x:Int, val y:Int)
val (i, j) = Pair(1,2)
i
error: unresolved reference: i

What am I doing wrong?


#2

Destructuring declarations are not yet supported in REPL, here’s the issue: https://youtrack.jetbrains.com/issue/KT-5620