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,10 +1,10 @@
fun doSomething<T>(a: T) {}
fun <T> doSomething(a: T) {}
fun test() {
class Test {
fun unaryPlus(): Test = Test()
fun plus(a: Test): Test = Test()
fun unaryMinus(): Test = Test()
operator fun unaryPlus(): Test = Test()
operator fun plus(a: Test): Test = Test()
operator fun unaryMinus(): Test = Test()
}
val test = Test()
doSomething((-((test + test).unaryPl<caret>us())).toString())