Files
kotlin-fork/idea/testData/quickfix/createFromUsage/hasNext/afterCreateHasNextFromUsage1.kt
T

18 lines
476 B
Kotlin

// "Create function 'hasNext' from usage" "true"
class FooIterator<T> {
fun next(): Int {
throw Exception("not implemented")
}
fun hasNext(): Boolean {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
class Foo<T> {
fun iterator(): FooIterator<String> {
throw Exception("not implemented")
}
}
fun foo() {
for (i: Int in Foo<Int>()) { }
}