The following does not throw in DDC.
void main() {
List<String> list = const [];
list.add("hello");
print(list);
}
On the VM, it generates:
Unhandled exception:
Unsupported operation: Cannot add to an unmodifiable list
EDIT(jmesserly): Maps need to be fixed as well
The following does not throw in DDC.
On the VM, it generates:
EDIT(jmesserly): Maps need to be fixed as well