<!-- BUGS: Please use this template. --> <!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript --> <!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md --> **TypeScript Version:** 2.0@RC **Code** ``` ts // Current definition of `Object.freeze`: // freeze<T>(o: T): T; const o = Object.freeze({a: 1}); o.a = 2; // Should throw type error console.log(o); // {a: 1} ``` **Expected behavior:** Frozen object has `readonly` properties **Actual behavior:** Type system allows me to write to `o`'s properties