code review; add 'operator' also to next() and hasNext(); check toplevel functions

This commit is contained in:
Dmitry Jemerov
2015-09-24 20:35:21 +02:00
parent e0f8d68a5f
commit 8b0ccce4f1
5 changed files with 49 additions and 9 deletions
@@ -0,0 +1,5 @@
// "Add 'operator' modifier" "true"
class A {
}
fun A.<caret>plus(other: A): A = A()
@@ -0,0 +1,5 @@
// "Add 'operator' modifier" "true"
class A {
}
operator fun A.<caret>plus(other: A): A = A()
@@ -0,0 +1,7 @@
// "Add 'operator' modifier" "false"
// ACTION: Convert to block body
// ACTION: Remove explicit type specification
class A {
}
fun <caret>plus(other: A): A = A()