Files
kotlin-fork/idea/testData/quickfix/createFromUsage/next/beforeCreateNextFromUsage2.kt
T
2013-05-12 23:50:36 -04:00

13 lines
272 B
Kotlin

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