val hasNext changed to fun in test
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
package foo
|
||||
|
||||
class TabIterator : Iterator<Any?> {
|
||||
override val hasNext:Boolean
|
||||
get() = false
|
||||
override fun hasNext():Boolean = false
|
||||
|
||||
override fun next():Any? {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
fun box() = !TabIterator().hasNext
|
||||
fun box() = !TabIterator().hasNext()
|
||||
|
||||
Reference in New Issue
Block a user