Merge pull request #3047 from aschackmull/java/typeflow-testcase

Java: Add test case to typeflow qltest.
This commit is contained in:
yo-h
2020-03-11 09:25:36 -04:00
committed by GitHub

View File

@@ -70,4 +70,19 @@ public class A extends ArrayList<Long> {
int i2 = (Integer)x2;
int j2 = i2;
}
public static class C {
private Map<String, String> map;
public static C empty = new C(Collections.emptyMap());
private C(Map<String, String> map) {
this.map = map;
}
public C() {
this(new LinkedHashMap<>());
}
public void put(String k, String v) {
map.put(k, v);
empty.put(k, v);
}
}
}