Fix tests: "infix modifier required" and "operator modifier required" errors
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ fun foo1() {
|
||||
}
|
||||
|
||||
fun foo2() {
|
||||
fun A.component1(): Int = a + 1
|
||||
operator fun A.component1(): Int = a + 1
|
||||
|
||||
val (aa, bb) = A(1, "2")
|
||||
val (uu, vv) = A(2, "2")
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
fun Int.contains(n: Int): Boolean = n < this
|
||||
operator fun Int.contains(n: Int): Boolean = n < this
|
||||
|
||||
fun foo(n: Int): Int {
|
||||
if (n in 1) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
fun String.inc() = this + "+"
|
||||
operator fun String.inc() = this + "+"
|
||||
|
||||
class Foo {
|
||||
init {
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
val a = <selection>1 + 2</selection>
|
||||
val b = 1 plus 2
|
||||
val d = 2 plus 1
|
||||
val a = <selection>1 + 2</selection>
|
||||
+1
-3
@@ -1,3 +1 @@
|
||||
1 + 2
|
||||
|
||||
1 plus 2
|
||||
1 + 2
|
||||
Reference in New Issue
Block a user