mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
9 lines
209 B
Kotlin
Vendored
9 lines
209 B
Kotlin
Vendored
val (_, b, _) = A()
|
|
|
|
class A {
|
|
operator fun component1(): Int = throw RuntimeException()
|
|
operator fun component2() = 2
|
|
operator fun component3(): Int = throw RuntimeException()
|
|
}
|
|
|
|
// expected: b: 2 |