mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix Quickfix for missing operator adds infix modifier to created function (#1012)
Fixes #KT-14907 GitOrigin-RevId: 40a29c813a769c777b2f0d80e5c0ac2485a32d62
This commit is contained in:
committed by
intellij-monorepo-bot
parent
96f6c50dcb
commit
b15ba3e074
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Create member function 'A.compareTo'" "true"
|
||||
|
||||
class A<T>(val n: T) {
|
||||
infix operator fun compareTo(t: T): Int {
|
||||
operator fun compareTo(t: T): Int {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Create member function 'A.contains'" "true"
|
||||
|
||||
class A<T>(val n: T) {
|
||||
infix operator fun contains(t: T): Boolean {
|
||||
operator fun contains(t: T): Boolean {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Create member function 'A.compareTo'" "true"
|
||||
|
||||
class A<T>(val n: T) {
|
||||
infix operator fun compareTo(t: T): Int {
|
||||
operator fun compareTo(t: T): Int {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Create member function 'A.contains'" "true"
|
||||
|
||||
class A<T>(val n: T) {
|
||||
infix operator fun contains(t: T): Boolean {
|
||||
operator fun contains(t: T): Boolean {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Create member function 'A.plusAssign'" "true"
|
||||
|
||||
class A<T>(val n: T) {
|
||||
infix operator fun plusAssign(t: T) {
|
||||
operator fun plusAssign(t: T) {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
class A<T>(val n: T) {
|
||||
operator fun unaryPlus(): A<T> = throw Exception()
|
||||
infix operator fun plus(t: T): A<T> {
|
||||
operator fun plus(t: T): A<T> {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Create member function 'A.plus'" "true"
|
||||
|
||||
class A<T>(val n: T) {
|
||||
infix operator fun plus(t: T): A<T> {
|
||||
operator fun plus(t: T): A<T> {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
class A<T>(val n: T) {
|
||||
fun plus(i: Int, s: String): A<T> = throw Exception()
|
||||
infix operator fun plus(t: T): A<T> {
|
||||
operator fun plus(t: T): A<T> {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -7,6 +7,6 @@ fun test() {
|
||||
val a: A<Int> = 2 + A(1)
|
||||
}
|
||||
|
||||
private infix operator fun Int.plus(a: A<Int>): A<Int> {
|
||||
private operator fun Int.plus(a: A<Int>): A<Int> {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Create member function 'A.plus'" "true"
|
||||
|
||||
class A<T>(val n: T) {
|
||||
infix operator fun plus(t: T): A<T> {
|
||||
operator fun plus(t: T): A<T> {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Create member function 'A.plus'" "true"
|
||||
|
||||
class A<T>(val n: T) {
|
||||
infix operator fun plus(i: Int): A<T> {
|
||||
operator fun plus(i: Int): A<T> {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -7,6 +7,6 @@ fun test() {
|
||||
A() * "1"
|
||||
}
|
||||
|
||||
private infix operator fun A.times(s: String) {
|
||||
private operator fun A.times(s: String) {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Create member function 'A.contains'" "true"
|
||||
|
||||
class A<T>(val n: T) {
|
||||
infix operator fun contains(t: T): Boolean {
|
||||
operator fun contains(t: T): Boolean {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Create member function 'A.contains'" "true"
|
||||
|
||||
class A<T>(val n: T) {
|
||||
infix operator fun contains(t: T): Boolean {
|
||||
operator fun contains(t: T): Boolean {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user