mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
10 lines
388 B
Plaintext
10 lines
388 B
Plaintext
deleteReadonlyInStrictNullChecks.ts(3,8): error TS2704: The operand of a 'delete' operator cannot be a read-only property.
|
|
|
|
|
|
==== deleteReadonlyInStrictNullChecks.ts (1 errors) ====
|
|
interface Function { readonly name: string; }
|
|
class Foo {}
|
|
delete Foo.name;
|
|
~~~~~~~~
|
|
!!! error TS2704: The operand of a 'delete' operator cannot be a read-only property.
|
|
|