Files
kotlin/idea/testData/quickfix/createFromUsage/createFunction/iterator/afterCreateIteratorFromUsage2.kt
2014-10-14 00:39:23 +04:00

14 lines
338 B
Kotlin

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