TypeScript/tests/baselines/reference/reservedWords2.js
2015-04-16 16:41:11 -07:00

38 lines
711 B
TypeScript

//// [reservedWords2.ts]
import while = require("dfdf");
import * as while from "foo"
var typeof = 10;
function throw() {}
module void {}
var {while, return} = { while: 1, return: 2 };
var {this, switch: { continue} } = { this: 1, switch: { continue: 2 }};
var [debugger, if] = [1, 2];
enum void {}
//// [reservedWords2.js]
require();
while ( = require("dfdf"))
;
while (from)
"foo";
var ;
typeof ;
10;
throw function () { };
void {};
var _a = { while: 1, return: 2 }, = _a.while, = _a.return;
var _b = { this: 1, switch: { continue: 2 } }, = _b.this, = _b.switch.continue;
var _c = void 0;
debugger;
if ()
;
[1, 2];
var ;
(function () {
})( || ( = {}));
void {};