78affdd2b4
This testdata was written when there was no "operator" modifier.
After a83225218f rules for operators become stricter and now functions without operators are not considered as such
14 lines
188 B
Kotlin
Vendored
14 lines
188 B
Kotlin
Vendored
package a
|
|
|
|
class A() {
|
|
}
|
|
|
|
operator fun A.component1() = 1
|
|
operator fun A.component2() = 1
|
|
|
|
fun main(args: Array<String>) {
|
|
val (a, <caret>b) = A()
|
|
}
|
|
|
|
// REF: (for A in a).component2()
|