mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
916 B
Plaintext
16 lines
916 B
Plaintext
//// [tests/cases/compiler/deleteReadonlyInStrictNullChecks.ts] ////
|
|
|
|
=== deleteReadonlyInStrictNullChecks.ts ===
|
|
interface Function { readonly name: string; }
|
|
>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(deleteReadonlyInStrictNullChecks.ts, 0, 0))
|
|
>name : Symbol(Function.name, Decl(lib.es2015.core.d.ts, --, --), Decl(deleteReadonlyInStrictNullChecks.ts, 0, 20))
|
|
|
|
class Foo {}
|
|
>Foo : Symbol(Foo, Decl(deleteReadonlyInStrictNullChecks.ts, 0, 45))
|
|
|
|
delete Foo.name;
|
|
>Foo.name : Symbol(Function.name, Decl(lib.es2015.core.d.ts, --, --), Decl(deleteReadonlyInStrictNullChecks.ts, 0, 20))
|
|
>Foo : Symbol(Foo, Decl(deleteReadonlyInStrictNullChecks.ts, 0, 45))
|
|
>name : Symbol(Function.name, Decl(lib.es2015.core.d.ts, --, --), Decl(deleteReadonlyInStrictNullChecks.ts, 0, 20))
|
|
|