Use different file for navigation test because of test framework limitation.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
package kotlin
|
||||
|
||||
import java.util.*
|
||||
import java.util.Enumeration
|
||||
|
||||
/**
|
||||
Helper to make java.util.Enumeration usable in for
|
||||
*/
|
||||
public fun <T> java.util.Enumeration<T>.iterator(): Iterator<T> = object: Iterator<T> {
|
||||
public fun <T> Enumeration<T>.iterator(): Iterator<T> = object: Iterator<T> {
|
||||
override fun hasNext(): Boolean = hasMoreElements()
|
||||
|
||||
public override fun next(): T = nextElement()
|
||||
|
||||
Reference in New Issue
Block a user