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