Closed

Description
TypeScript Version: nightly (2.5.0-dev.20170712)
Code
class C {
constructor() {
/**
* @readonly
* @type {number}
*/
this.x = 0;
}
m() {
this.x = "1"; // Error
this.x = 1; // No error
}
}
Expected behavior:
Both lines in m
are errors.
Actual behavior:
No error when trying to write to @readonly
property.