Support underscores in non local destructuring declarations

This commit is contained in:
Mikhail Zarechenskiy
2017-05-25 12:16:04 +03:00
parent 47f2386212
commit d0e26c6527
4 changed files with 21 additions and 2 deletions
@@ -0,0 +1,9 @@
val (_, b, _) = A()
class A {
operator fun component1(): Int = throw RuntimeException()
operator fun component2() = 2
operator fun component3(): Int = throw RuntimeException()
}
// expected: b: 2