partially suppress reachability errors in tests

This commit is contained in:
Vladimir Matveev
2015-10-13 11:17:10 -07:00
parent bc02341e99
commit 238e1c6f4b
81 changed files with 1954 additions and 485 deletions

View File

@@ -1,3 +1,5 @@
// @allowUnusedLabels: true
Input:
;
//Testing two

View File

@@ -1,4 +1,6 @@
//@module: commonjs
// @allowUnreachableCode: true
// @module: commonjs
export module Foo {
export class C {}
}

View File

@@ -1,3 +1,5 @@
// @allowUnreachableCode: true
function f() {
return function (s) {
var x = s;

View File

@@ -1,3 +1,5 @@
// @allowUnusedLabels: true
// @sourcemap: true
x:
var b = 10;

View File

@@ -1,3 +1,4 @@
// @allowUnreachableCode: true
// @module: system
export var x;

View File

@@ -1,3 +1,5 @@
// @allowUnusedLabels: true
// typeof operator on boolean type
var BOOLEAN: boolean;

View File

@@ -1,3 +1,5 @@
// @allowUnusedLabels: true
// typeof operator on enum type
enum ENUM { };

View File

@@ -1,3 +1,5 @@
// @allowUnusedLabels: true
target1:
target2:
while (true) {

View File

@@ -1,3 +1,5 @@
// @allowUnusedLabels: true
target1:
target2:
while (true) {

View File

@@ -1,3 +1,5 @@
// @allowUnusedLabels: true
target1:
target2:
while (true) {

View File

@@ -1,3 +1,5 @@
// @allowUnusedLabels: true
target1:
target2:
while (true) {

View File

@@ -1,3 +1,5 @@
// @allowUnusedLabels: true
target:
while (true) {
function f() {

View File

@@ -1,3 +1,6 @@
// @allowUnusedLabels: true
// @allowUnreachableCode: true
target:
while (true) {
}

View File

@@ -1,3 +1,6 @@
// @allowUnusedLabels: true
// @allowUnreachableCode: true
switch ('') {
case 'a':
break;

View File

@@ -1,3 +1,5 @@
// @allowUnreachableCode: true
function fn(x) {
throw x;
}

View File

@@ -1,3 +1,5 @@
// @allowUnreachableCode: true
// all legal
interface I {