Fix tests: "infix modifier required" and "operator modifier required" errors

This commit is contained in:
Yan Zhulanow
2015-11-26 15:56:56 +03:00
parent a3ff3ffc45
commit 9d1af5a17e
635 changed files with 1283 additions and 1617 deletions
@@ -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,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 @@
1 + 2
1 plus 2
1 + 2