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

15 lines
297 B
Kotlin

// "Create function 'hasNext' from usage" "true"
class FooIterator<T> {
fun next(): T {
throw Exception("not implemented")
}
}
class Foo<T> {
fun iterator(): FooIterator<T> {
throw Exception("not implemented")
}
}
fun foo() {
for (i in Foo<caret><Int>()) { }
}