mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Parse reserved identifiers as dotted names of ambient modules (#55282)
This commit is contained in:
committed by
GitHub
parent
b5b6048bb3
commit
fe70ec984e
@@ -0,0 +1,13 @@
|
||||
// @declaration: true
|
||||
|
||||
// https://github.com/microsoft/TypeScript/issues/7840
|
||||
|
||||
declare module chrome.debugger {
|
||||
declare var tabId: number;
|
||||
}
|
||||
|
||||
export const tabId = chrome.debugger.tabId;
|
||||
|
||||
declare module test.class {}
|
||||
|
||||
declare module debugger {} // still an error
|
||||
@@ -0,0 +1,11 @@
|
||||
// @declaration: true
|
||||
|
||||
declare namespace chrome.debugger {
|
||||
declare var tabId: number;
|
||||
}
|
||||
|
||||
export const tabId = chrome.debugger.tabId;
|
||||
|
||||
declare namespace test.class {}
|
||||
|
||||
declare namespace debugger {} // still an error
|
||||
Reference in New Issue
Block a user