blob: 50ae4b902da8ea176b5706c8cda7691e0e3e8ffe [file] [log] [blame]
import java.util.*;
interface Int {
}
class Impl implements Int {
void foo() {
}
}
class Usage {
void f() {
List<Impl> l = new ArrayList<Impl>();
l.get(0).foo();
List<Impl> l1 = new ArrayList<Impl>();
Impl i = l1.get(0);
List<Impl> l2 = new ArrayList<Impl>();
Impl i2 = l2.get(0);
i2.foo();
}
}