Java: Add minor test case to typeflow qltest.

This commit is contained in:
Anders Schack-Mulligen
2020-03-11 13:13:19 +01:00
parent f5a8084a33
commit e1a0c2d846

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);
}
}
}