mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
443 B
TypeScript
25 lines
443 B
TypeScript
//// [tests/cases/conformance/es2019/globalThisUnknownNoImplicitAny.ts] ////
|
|
|
|
//// [globalThisUnknownNoImplicitAny.ts]
|
|
declare let win: Window & typeof globalThis;
|
|
|
|
// all accesses should be errors
|
|
win.hi
|
|
this.hi
|
|
globalThis.hi
|
|
|
|
win['hi']
|
|
this['hi']
|
|
globalThis['hi']
|
|
|
|
|
|
//// [globalThisUnknownNoImplicitAny.js]
|
|
"use strict";
|
|
// all accesses should be errors
|
|
win.hi;
|
|
this.hi;
|
|
globalThis.hi;
|
|
win['hi'];
|
|
this['hi'];
|
|
globalThis['hi'];
|