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
@@ -1,5 +1,5 @@
class Bar {
fun get(vararg args: Int) {}
operator fun get(vararg args: Int) {}
}
fun foo(a: Bar, i: Int) {
@@ -1,5 +1,5 @@
class Bar {
fun get(vararg args: Int) {}
operator fun get(vararg args: Int) {}
}
fun foo(a: Bar, i: Int) {
@@ -1,5 +1,5 @@
class Bar {
fun plusAssign(arg: Bar) {}
operator fun plusAssign(arg: Bar) {}
}
fun foo(b: Bar) {
@@ -1,5 +1,5 @@
class Bar {
fun plusAssign(arg: Bar) {}
operator fun plusAssign(arg: Bar) {}
}
fun foo(b: Bar) {
@@ -1,5 +1,5 @@
class bar() {
fun invoke(i: Any?, j: Any?) : Boolean {
operator fun invoke(i: Any?, j: Any?) : Boolean {
return true
}
}
@@ -1,5 +1,5 @@
class bar() {
fun invoke(i: Any?, j: Any?) : Boolean {
operator fun invoke(i: Any?, j: Any?) : Boolean {
return true
}
}
@@ -1,5 +1,5 @@
class Mocha() {
fun invoke(x: Int, y: String, f: (Int) -> String) {
operator fun invoke(x: Int, y: String, f: (Int) -> String) {
}
}
fun main() {
@@ -1,5 +1,5 @@
class Mocha() {
fun invoke(x: Int, y: String, f: (Int) -> String) {
operator fun invoke(x: Int, y: String, f: (Int) -> String) {
}
}
fun main() {
@@ -1,5 +1,5 @@
class Mocha() {
fun invoke(f: (Int) -> String) {}
operator fun invoke(f: (Int) -> String) {}
}
fun main() {
val mocha = Mocha()
@@ -1,5 +1,5 @@
class Mocha() {
fun invoke(f: (Int) -> String) {}
operator fun invoke(f: (Int) -> String) {}
}
fun main() {
val mocha = Mocha()