Create From Usage: Move "Create function"-related tests to separate directory
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// "Create function 'next' from usage" "true"
|
||||
class FooIterator<T> {
|
||||
fun hasNext(): Boolean { return false }
|
||||
}
|
||||
class Foo<T> {
|
||||
fun iterator(): FooIterator<String> {
|
||||
throw Exception("not implemented")
|
||||
}
|
||||
}
|
||||
fun foo() {
|
||||
for (i: Int in Foo<caret><Int>()) { }
|
||||
}
|
||||
Reference in New Issue
Block a user