mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Rename unary plus() and minus() to unaryPlus() and unaryMinus()
GitOrigin-RevId: 148c5575e1d1e8d8f1c0d03645dc52b41f5127d7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b1f1f6f3ea
commit
224affe3a2
+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
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Create member function 'plus'" "true"
|
||||
|
||||
class A<T>(val n: T) {
|
||||
fun plus(): A<T> = throw Exception()
|
||||
operator fun unaryPlus(): A<T> = throw Exception()
|
||||
|
||||
operator fun plus(t: T): A<T> {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
|
||||
Reference in New Issue
Block a user