teach 'create from usage' to add 'operator' modifier when necessary

This commit is contained in:
Dmitry Jemerov
2015-09-24 16:28:03 +02:00
parent bda0bd1de1
commit 3dbb74bf0c
35 changed files with 54 additions and 47 deletions
@@ -1,6 +1,6 @@
// "Create member function 'iterator'" "true"
class Foo<T> {
fun iterator(): Iterator<T> {
operator fun iterator(): Iterator<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -1,6 +1,6 @@
// "Create member function 'iterator'" "true"
class Foo<T> {
fun iterator(): Iterator<String> {
operator fun iterator(): Iterator<String> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}