Rename unary plus() and minus() to unaryPlus() and unaryMinus()

This commit is contained in:
Yan Zhulanow
2015-10-07 19:25:32 +03:00
parent 1f2b4e20fe
commit ed5c059cea
59 changed files with 210 additions and 88 deletions
@@ -3,7 +3,7 @@
package h
import util.minus
import util.unaryMinus
interface H
@@ -1,3 +1,3 @@
package util
operator fun h.H?.minus() = ""
operator fun h.H?.unaryMinus() = ""
@@ -1,9 +1,9 @@
// "Import" "true"
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>public</b> operator <b>fun</b> h.A.plus(): kotlin.Int <i>defined in</i> h</li><li><b>public</b> operator <b>fun</b> kotlin.String?.plus(other: kotlin.Any?): kotlin.String <i>defined in</i> kotlin</li></ul></html>
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>public</b> operator <b>fun</b> h.A.unaryPlus(): kotlin.Int <i>defined in</i> h</li></ul></html>
package h
import util.plus
import util.unaryPlus
interface H
@@ -13,4 +13,4 @@ fun f(h: H?) {
class A()
operator fun A.plus(): Int = 3
operator fun A.unaryPlus(): Int = 3
@@ -1,3 +1,3 @@
package util
operator fun h.H.plus() = ""
operator fun h.H.unaryPlus() = ""
@@ -1,5 +1,5 @@
// "Import" "true"
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>public</b> operator <b>fun</b> h.A.plus(): kotlin.Int <i>defined in</i> h</li><li><b>public</b> operator <b>fun</b> kotlin.String?.plus(other: kotlin.Any?): kotlin.String <i>defined in</i> kotlin</li></ul></html>
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>public</b> operator <b>fun</b> h.A.unaryPlus(): kotlin.Int <i>defined in</i> h</li></ul></html>
package h
@@ -11,4 +11,4 @@ fun f(h: H?) {
class A()
operator fun A.plus(): Int = 3
operator fun A.unaryPlus(): Int = 3