TypeScript/tests/cases/fourslash/documentHighlightsInvalidGlobalThis.ts
Nathan Shively-Sanders 29f9493d87
Fix crash when exporting+aliasing globalThis inside declare global (#34408)
* global module:Fix crash when exporting+aliasing globalThis

* Fix another globalThis crash

find-all-refs assumed that an export inside a `declare x` was always an
ambient module, but it is not -- `declare global` does not allow
`export`, so find-all-refs shouldn't return any refs for this error case.
2019-10-15 14:05:39 -07:00

10 lines
187 B
TypeScript

/// <reference path="fourslash.ts" />
////declare global {
//// export { globalThis as [|global|] }
////}
for (const r of test.ranges()) {
verify.documentHighlightsOf(r, [r]);
}