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
13 lines
213 B
Kotlin
Vendored
13 lines
213 B
Kotlin
Vendored
package a
|
|
|
|
class MyPair {
|
|
operator fun component1() = 1
|
|
operator fun component2() = 2
|
|
}
|
|
|
|
fun main(args: Array<String>) {
|
|
val p = MyPair()
|
|
val (a, <caret>b) = p
|
|
}
|
|
|
|
// REF: (in a.MyPair).component2() |