This commit is contained in:
Ryan Cavanaugh
2016-04-26 13:01:14 -07:00
parent da0197527f
commit fed42cc6bd
3 changed files with 21 additions and 0 deletions
@@ -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;
}