Closed
Description
The Problem
It is currently not possible to consistently catch modifications of frozen objects, which lead to runtime errors in strict mode. See #11180 and #11480 for examples.
Proposed Solution
Add a strictReadonlyChecks
compiler option, which does not allow to assign readonly
fields to non-readonly (regular) fields. Also do not allow deleting items from readonly dictionaries (#11480), unless this can already be solved by regular compiler behavior.