37 lines
608 B
TypeScript
37 lines
608 B
TypeScript
//// [strictModeReservedWord2.ts]
|
|
"use strict"
|
|
interface public { }
|
|
interface implements {
|
|
foo(package, protected);
|
|
}
|
|
enum package { }
|
|
enum foo {
|
|
public,
|
|
private,
|
|
pacakge
|
|
}
|
|
|
|
const enum private {
|
|
public,
|
|
private,
|
|
pacakge
|
|
}
|
|
|
|
const enum bar {
|
|
public,
|
|
private,
|
|
pacakge
|
|
}
|
|
|
|
|
|
//// [strictModeReservedWord2.js]
|
|
"use strict";
|
|
var package;
|
|
(function (package) {
|
|
})(package || (package = {}));
|
|
var foo;
|
|
(function (foo) {
|
|
foo[foo["public"] = 0] = "public";
|
|
foo[foo["private"] = 1] = "private";
|
|
foo[foo["pacakge"] = 2] = "pacakge";
|
|
})(foo || (foo = {}));
|