blob: 38a5c495d826ba31f1fff308c33c618805c08de0 [file] [log] [blame]
class Test {
void test() throws Exception {
MyIterableImpl 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; }
}
}