Support underscores in non local destructuring declarations
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user