Fix old testdata: add missing operator modifier

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
This commit is contained in:
Mikhail Zarechenskiy
2019-09-24 09:50:03 +03:00
parent a98c610958
commit 78affdd2b4
5 changed files with 9 additions and 9 deletions
@@ -3,5 +3,5 @@ package test1
public class MyClass {
}
public fun MyClass.component1() = 1
public fun MyClass.component2() = 2
public operator fun MyClass.component1() = 1
public operator fun MyClass.component2() = 2
@@ -2,7 +2,7 @@
// OPTIONS: usages
class C
fun C.plusAssign(p: Int) = this
operator fun C.plusAssign(p: Int) = this
fun foo() {
val <caret>c = C()
@@ -1,8 +1,8 @@
package inlineFun1
class A {
inline fun component1() = foo { 1 }
inline fun component2() = foo { 2 }
inline operator fun component1() = foo { 1 }
inline operator fun component2() = foo { 2 }
inline fun foo(f: () -> Int) = f()
}
@@ -3,8 +3,8 @@ package a
class A() {
}
fun A.component1() = 1
fun A.component2() = 1
operator fun A.component1() = 1
operator fun A.component2() = 1
fun main(args: Array<String>) {
val (a, <caret>b) = A()
+2 -2
View File
@@ -1,8 +1,8 @@
package a
class MyPair {
fun component1() = 1
fun component2() = 2
operator fun component1() = 1
operator fun component2() = 2
}
fun main(args: Array<String>) {