Rename unary plus() and minus() to unaryPlus() and unaryMinus()
This commit is contained in:
+2
-2
@@ -1,9 +1,9 @@
|
||||
// "Create member function 'plus'" "true"
|
||||
|
||||
class A<T>(val n: T) {
|
||||
fun plus(): A<T> = throw Exception()
|
||||
operator fun unaryPlus(): A<T> = throw Exception()
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val a: A<Int> = A(1) + <caret>2
|
||||
val a: A<Int> = A(1) +<caret> 2
|
||||
}
|
||||
Reference in New Issue
Block a user