Specified return-type explicitly for FunctionalList.iterator() member function

This commit is contained in:
Evgeny Gerashchenko
2012-03-10 14:56:32 +04:00
parent b64e2ca886
commit 351b2fd676
@@ -23,7 +23,7 @@ abstract class FunctionalList<T>(public val size: Int) {
return new
}
fun iterator() = object: Iterator<T> {
fun iterator() : Iterator<T> = object: Iterator<T> {
var cur = this@FunctionalList
override fun next(): T {