blob: 1900c4022ae80dcc1cac79ff741981988a229ac5 [file] [log] [blame]
class Test {
void test() throws Exception {
MyIterable r = new MyIterableImpl();
for (String s : r) {
r.length();
}
}
interface MyIterable extends Iterable<String> {
}
static class MyIterableImpl implements MyIterable {
public Iterator<String> iterator() { return null; }
}
}