quickfix for usages of operators that don't have the proper annotation
This commit is contained in:
+10
@@ -47,3 +47,13 @@ class Foo {
|
||||
get = $x
|
||||
set(value) { $x = value }
|
||||
}
|
||||
|
||||
class B {
|
||||
fun plus(a: A): A = A()
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
B() + B()
|
||||
B() + B()
|
||||
B() + B()
|
||||
}
|
||||
|
||||
@@ -46,3 +46,13 @@ class Foo {
|
||||
get = field
|
||||
set(value) { field = value }
|
||||
}
|
||||
|
||||
class B {
|
||||
operator fun plus(a: A): A = A()
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
B() + B()
|
||||
B() + B()
|
||||
B() + B()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user