mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Add test
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
tests/cases/compiler/ambientNameRestrictions.ts(2,14): error TS1214: Identifier expected. 'static' is a reserved word in strict mode. Modules are automatically in strict mode.
|
||||
|
||||
|
||||
==== tests/cases/compiler/ambientNameRestrictions.ts (1 errors) ====
|
||||
export declare namespace Foo {
|
||||
export var static: any;
|
||||
~~~~~~
|
||||
!!! error TS1214: Identifier expected. 'static' is a reserved word in strict mode. Modules are automatically in strict mode.
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
//// [ambientNameRestrictions.ts]
|
||||
export declare namespace Foo {
|
||||
export var static: any;
|
||||
}
|
||||
|
||||
|
||||
//// [ambientNameRestrictions.js]
|
||||
"use strict";
|
||||
@@ -0,0 +1,3 @@
|
||||
export declare namespace Foo {
|
||||
export var static: any;
|
||||
}
|
||||
Reference in New Issue
Block a user