mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-24 11:43:18 -05:00
partially suppress reachability errors in tests
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// @allowUnusedLabels: true
|
||||
|
||||
Input:
|
||||
;
|
||||
//Testing two
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
//@module: commonjs
|
||||
// @allowUnreachableCode: true
|
||||
// @module: commonjs
|
||||
|
||||
export module Foo {
|
||||
export class C {}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// @allowUnreachableCode: true
|
||||
|
||||
function f() {
|
||||
return function (s) {
|
||||
var x = s;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// @allowUnusedLabels: true
|
||||
// @sourcemap: true
|
||||
|
||||
x:
|
||||
var b = 10;
|
||||
@@ -1,3 +1,4 @@
|
||||
// @allowUnreachableCode: true
|
||||
// @module: system
|
||||
|
||||
export var x;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// @allowUnusedLabels: true
|
||||
|
||||
// typeof operator on boolean type
|
||||
var BOOLEAN: boolean;
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// @allowUnusedLabels: true
|
||||
|
||||
// typeof operator on enum type
|
||||
|
||||
enum ENUM { };
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// @allowUnusedLabels: true
|
||||
|
||||
target1:
|
||||
target2:
|
||||
while (true) {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// @allowUnusedLabels: true
|
||||
|
||||
target1:
|
||||
target2:
|
||||
while (true) {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// @allowUnusedLabels: true
|
||||
|
||||
target1:
|
||||
target2:
|
||||
while (true) {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// @allowUnusedLabels: true
|
||||
|
||||
target1:
|
||||
target2:
|
||||
while (true) {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// @allowUnusedLabels: true
|
||||
|
||||
target:
|
||||
while (true) {
|
||||
function f() {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// @allowUnusedLabels: true
|
||||
// @allowUnreachableCode: true
|
||||
|
||||
target:
|
||||
while (true) {
|
||||
}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// @allowUnusedLabels: true
|
||||
// @allowUnreachableCode: true
|
||||
|
||||
switch ('') {
|
||||
case 'a':
|
||||
break;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// @allowUnreachableCode: true
|
||||
|
||||
function fn(x) {
|
||||
throw x;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// @allowUnreachableCode: true
|
||||
|
||||
// all legal
|
||||
|
||||
interface I {
|
||||
|
||||
Reference in New Issue
Block a user