TypeScript/tests/cases/compiler/jsFileCompilationBindErrors.ts
2015-11-25 15:34:25 -08:00

15 lines
No EOL
341 B
TypeScript

// @allowJs: true
// @noEmit: true
// @filename: a.js
let C = "sss";
let C = 0; // Error: Cannot redeclare block-scoped variable 'C'.
function f() {
return;
return; // Error: Unreachable code detected.
}
function b() {
"use strict";
var arguments = 0; // Error: Invalid use of 'arguments' in strict mode.
}