add 'operator' modifier when creating next() and hasNext() from usage
This commit is contained in:
Vendored
+1
-1
@@ -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.
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user