add 'operator' modifier when creating next() and hasNext() from usage

This commit is contained in:
Dmitry Jemerov
2015-09-24 20:22:42 +02:00
parent 1e2d4c0471
commit e0f8d68a5f
7 changed files with 9 additions and 7 deletions
@@ -2,7 +2,7 @@
class FooIterator<T> {
fun hasNext(): Boolean { return false }
fun next(): Any {
operator fun next(): Any {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}