2015-11-26 00:34:25 +01:00
|
|
|
// @allowJs: true
|
2017-06-02 19:29:53 +02:00
|
|
|
// @checkJs: true
|
2015-11-26 00:34:25 +01:00
|
|
|
// @noEmit: true
|
2018-05-22 16:56:29 +02:00
|
|
|
// @allowUnreachableCode: false
|
|
|
|
|
2015-11-26 00:34:25 +01:00
|
|
|
// @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.
|
|
|
|
}
|