TypeScript/tests/cases/compiler/reservedWords2.ts
Sergey Tychinin ab879939df Improve error message when reserved word is used as identifier
Signed-off-by: Sergey Tychinin <stychinin@bloomberg.net>
2019-10-01 10:48:17 -04:00

14 lines
355 B
TypeScript

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 {}
function f(default: number) {}
class C { m(null: string) {} }