quickfix for usages of operators that don't have the proper annotation

This commit is contained in:
Dmitry Jemerov
2015-09-25 19:31:30 +02:00
parent 8b0ccce4f1
commit 3d0e91065a
15 changed files with 132 additions and 9 deletions
+10
View File
@@ -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()
}
+10
View File
@@ -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()
}