TypeScript/tests/cases/compiler/deleteReadonly.ts

21 lines
195 B
TypeScript
Raw Normal View History

2016-11-02 13:47:46 +01:00
interface A {
readonly b
}
var a: A = {
b: 123
};
delete a.b;
interface B {
readonly [k: string]: string
}
var b: B = {
'test': 'test'
};
delete b['test'];
2016-11-03 06:25:58 +01:00
delete ((((b['test']))));