fun main(args : Array<String>) {
val x = #(1, 3)
if (x is #(val a : Number, val b : Number)) {
println(a)
println(b)
}
}
According to the documentation the code like this is not yet supported… I tried to look into the implementation code and found that JetBindingExpression for “val a: Number” has no condition… it looks like it should be type check? And Expression for upper lever should check for class Tuple2 ?