swc/crates/swc_ecma_parser/tests/tsc/globalThisUnknownNoImplicitAny.ts
2022-02-04 17:08:38 +09:00

12 lines
171 B
TypeScript

// @noImplicitAny: true
declare let win: Window & typeof globalThis;
// all accesses should be errors
win.hi
this.hi
globalThis.hi
win['hi']
this['hi']
globalThis['hi']