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