mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 21:06:50 -05:00
Revert diagnostic error number change
This commit is contained in:
@@ -293,15 +293,15 @@
|
||||
},
|
||||
"A 'for-await-of' statement is only allowed within an async function or async generator.": {
|
||||
"category": "Error",
|
||||
"code": 1104
|
||||
"code": 1103
|
||||
},
|
||||
"A 'continue' statement can only be used within an enclosing iteration statement.": {
|
||||
"category": "Error",
|
||||
"code": 1105
|
||||
"code": 1104
|
||||
},
|
||||
"A 'break' statement can only be used within an enclosing iteration or switch statement.": {
|
||||
"category": "Error",
|
||||
"code": 1106
|
||||
"code": 1105
|
||||
},
|
||||
"Jump target cannot cross function boundary.": {
|
||||
"category": "Error",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
tests/cases/compiler/ambientWithStatements.ts(2,5): error TS1036: Statements are not allowed in ambient contexts.
|
||||
tests/cases/compiler/ambientWithStatements.ts(3,5): error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
tests/cases/compiler/ambientWithStatements.ts(3,5): error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
tests/cases/compiler/ambientWithStatements.ts(7,15): error TS2407: The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter.
|
||||
tests/cases/compiler/ambientWithStatements.ts(11,5): error TS1108: A 'return' statement can only be used within a function body.
|
||||
tests/cases/compiler/ambientWithStatements.ts(25,5): error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.
|
||||
@@ -12,7 +12,7 @@ tests/cases/compiler/ambientWithStatements.ts(25,5): error TS2410: The 'with' st
|
||||
!!! error TS1036: Statements are not allowed in ambient contexts.
|
||||
continue;
|
||||
~~~~~~~~~
|
||||
!!! error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
!!! error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
debugger;
|
||||
do { } while (true);
|
||||
var x;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
tests/cases/compiler/breakNotInIterationOrSwitchStatement1.ts(1,1): error TS1106: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
tests/cases/compiler/breakNotInIterationOrSwitchStatement1.ts(1,1): error TS1105: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
|
||||
|
||||
==== tests/cases/compiler/breakNotInIterationOrSwitchStatement1.ts (1 errors) ====
|
||||
break;
|
||||
~~~~~~
|
||||
!!! error TS1106: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
!!! error TS1105: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
@@ -1,7 +1,7 @@
|
||||
tests/cases/compiler/continueNotInIterationStatement1.ts(1,1): error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
tests/cases/compiler/continueNotInIterationStatement1.ts(1,1): error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
|
||||
|
||||
==== tests/cases/compiler/continueNotInIterationStatement1.ts (1 errors) ====
|
||||
continue;
|
||||
~~~~~~~~~
|
||||
!!! error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
!!! error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
@@ -1,4 +1,4 @@
|
||||
tests/cases/compiler/continueNotInIterationStatement3.ts(3,5): error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
tests/cases/compiler/continueNotInIterationStatement3.ts(3,5): error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
|
||||
|
||||
==== tests/cases/compiler/continueNotInIterationStatement3.ts (1 errors) ====
|
||||
@@ -6,5 +6,5 @@ tests/cases/compiler/continueNotInIterationStatement3.ts(3,5): error TS1105: A '
|
||||
default:
|
||||
continue;
|
||||
~~~~~~~~~
|
||||
!!! error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
!!! error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
tests/cases/conformance/statements/breakStatements/invalidDoWhileBreakStatements.ts(5,1): error TS1106: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
tests/cases/conformance/statements/breakStatements/invalidDoWhileBreakStatements.ts(5,1): error TS1105: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
tests/cases/conformance/statements/breakStatements/invalidDoWhileBreakStatements.ts(9,4): error TS1116: A 'break' statement can only jump to a label of an enclosing statement.
|
||||
tests/cases/conformance/statements/breakStatements/invalidDoWhileBreakStatements.ts(15,9): error TS1107: Jump target cannot cross function boundary.
|
||||
tests/cases/conformance/statements/breakStatements/invalidDoWhileBreakStatements.ts(22,9): error TS1107: Jump target cannot cross function boundary.
|
||||
@@ -13,7 +13,7 @@ tests/cases/conformance/statements/breakStatements/invalidDoWhileBreakStatements
|
||||
// naked break not allowed
|
||||
break;
|
||||
~~~~~~
|
||||
!!! error TS1106: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
!!! error TS1105: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
|
||||
// non-existent label
|
||||
ONE:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
tests/cases/conformance/statements/continueStatements/invalidDoWhileContinueStatements.ts(5,1): error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
tests/cases/conformance/statements/continueStatements/invalidDoWhileContinueStatements.ts(5,1): error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
tests/cases/conformance/statements/continueStatements/invalidDoWhileContinueStatements.ts(9,4): error TS1115: A 'continue' statement can only jump to a label of an enclosing iteration statement.
|
||||
tests/cases/conformance/statements/continueStatements/invalidDoWhileContinueStatements.ts(15,9): error TS1107: Jump target cannot cross function boundary.
|
||||
tests/cases/conformance/statements/continueStatements/invalidDoWhileContinueStatements.ts(22,9): error TS1107: Jump target cannot cross function boundary.
|
||||
@@ -13,7 +13,7 @@ tests/cases/conformance/statements/continueStatements/invalidDoWhileContinueStat
|
||||
// naked continue not allowed
|
||||
continue;
|
||||
~~~~~~~~~
|
||||
!!! error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
!!! error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
|
||||
// non-existent label
|
||||
ONE:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
tests/cases/conformance/statements/breakStatements/invalidForBreakStatements.ts(5,1): error TS1106: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
tests/cases/conformance/statements/breakStatements/invalidForBreakStatements.ts(5,1): error TS1105: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
tests/cases/conformance/statements/breakStatements/invalidForBreakStatements.ts(9,9): error TS1116: A 'break' statement can only jump to a label of an enclosing statement.
|
||||
tests/cases/conformance/statements/breakStatements/invalidForBreakStatements.ts(15,9): error TS1107: Jump target cannot cross function boundary.
|
||||
tests/cases/conformance/statements/breakStatements/invalidForBreakStatements.ts(22,9): error TS1107: Jump target cannot cross function boundary.
|
||||
@@ -13,7 +13,7 @@ tests/cases/conformance/statements/breakStatements/invalidForBreakStatements.ts(
|
||||
// naked break not allowed
|
||||
break;
|
||||
~~~~~~
|
||||
!!! error TS1106: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
!!! error TS1105: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
|
||||
// non-existent label
|
||||
ONE:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
tests/cases/conformance/statements/continueStatements/invalidForContinueStatements.ts(5,1): error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
tests/cases/conformance/statements/continueStatements/invalidForContinueStatements.ts(5,1): error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
tests/cases/conformance/statements/continueStatements/invalidForContinueStatements.ts(9,9): error TS1115: A 'continue' statement can only jump to a label of an enclosing iteration statement.
|
||||
tests/cases/conformance/statements/continueStatements/invalidForContinueStatements.ts(15,9): error TS1107: Jump target cannot cross function boundary.
|
||||
tests/cases/conformance/statements/continueStatements/invalidForContinueStatements.ts(22,9): error TS1107: Jump target cannot cross function boundary.
|
||||
@@ -13,7 +13,7 @@ tests/cases/conformance/statements/continueStatements/invalidForContinueStatemen
|
||||
// naked continue not allowed
|
||||
continue;
|
||||
~~~~~~~~~
|
||||
!!! error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
!!! error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
|
||||
// non-existent label
|
||||
ONE:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
tests/cases/conformance/statements/breakStatements/invalidForInBreakStatements.ts(5,1): error TS1106: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
tests/cases/conformance/statements/breakStatements/invalidForInBreakStatements.ts(5,1): error TS1105: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
tests/cases/conformance/statements/breakStatements/invalidForInBreakStatements.ts(9,19): error TS1116: A 'break' statement can only jump to a label of an enclosing statement.
|
||||
tests/cases/conformance/statements/breakStatements/invalidForInBreakStatements.ts(15,9): error TS1107: Jump target cannot cross function boundary.
|
||||
tests/cases/conformance/statements/breakStatements/invalidForInBreakStatements.ts(22,9): error TS1107: Jump target cannot cross function boundary.
|
||||
@@ -13,7 +13,7 @@ tests/cases/conformance/statements/breakStatements/invalidForInBreakStatements.t
|
||||
// naked break not allowed
|
||||
break;
|
||||
~~~~~~
|
||||
!!! error TS1106: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
!!! error TS1105: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
|
||||
// non-existent label
|
||||
ONE:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
tests/cases/conformance/statements/continueStatements/invalidForInContinueStatements.ts(5,1): error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
tests/cases/conformance/statements/continueStatements/invalidForInContinueStatements.ts(5,1): error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
tests/cases/conformance/statements/continueStatements/invalidForInContinueStatements.ts(9,19): error TS1115: A 'continue' statement can only jump to a label of an enclosing iteration statement.
|
||||
tests/cases/conformance/statements/continueStatements/invalidForInContinueStatements.ts(15,9): error TS1107: Jump target cannot cross function boundary.
|
||||
tests/cases/conformance/statements/continueStatements/invalidForInContinueStatements.ts(22,9): error TS1107: Jump target cannot cross function boundary.
|
||||
@@ -13,7 +13,7 @@ tests/cases/conformance/statements/continueStatements/invalidForInContinueStatem
|
||||
// naked continue not allowed
|
||||
continue;
|
||||
~~~~~~~~~
|
||||
!!! error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
!!! error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
|
||||
// non-existent label
|
||||
ONE:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
tests/cases/conformance/statements/continueStatements/invalidSwitchContinueStatement.ts(4,10): error TS2678: Type '5' is not comparable to type '12'.
|
||||
tests/cases/conformance/statements/continueStatements/invalidSwitchContinueStatement.ts(5,9): error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
tests/cases/conformance/statements/continueStatements/invalidSwitchContinueStatement.ts(5,9): error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
|
||||
|
||||
==== tests/cases/conformance/statements/continueStatements/invalidSwitchContinueStatement.ts (2 errors) ====
|
||||
@@ -11,6 +11,6 @@ tests/cases/conformance/statements/continueStatements/invalidSwitchContinueState
|
||||
!!! error TS2678: Type '5' is not comparable to type '12'.
|
||||
continue;
|
||||
~~~~~~~~~
|
||||
!!! error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
!!! error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
tests/cases/conformance/statements/breakStatements/invalidWhileBreakStatements.ts(4,1): error TS1106: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
tests/cases/conformance/statements/breakStatements/invalidWhileBreakStatements.ts(4,1): error TS1105: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
tests/cases/conformance/statements/breakStatements/invalidWhileBreakStatements.ts(7,1): error TS7028: Unused label.
|
||||
tests/cases/conformance/statements/breakStatements/invalidWhileBreakStatements.ts(8,14): error TS1116: A 'break' statement can only jump to a label of an enclosing statement.
|
||||
tests/cases/conformance/statements/breakStatements/invalidWhileBreakStatements.ts(11,1): error TS7027: Unreachable code detected.
|
||||
@@ -14,7 +14,7 @@ tests/cases/conformance/statements/breakStatements/invalidWhileBreakStatements.t
|
||||
// naked break not allowed
|
||||
break;
|
||||
~~~~~~
|
||||
!!! error TS1106: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
!!! error TS1105: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
|
||||
// non-existent label
|
||||
ONE:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
tests/cases/conformance/statements/continueStatements/invalidWhileContinueStatements.ts(5,1): error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
tests/cases/conformance/statements/continueStatements/invalidWhileContinueStatements.ts(5,1): error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
tests/cases/conformance/statements/continueStatements/invalidWhileContinueStatements.ts(9,14): error TS1115: A 'continue' statement can only jump to a label of an enclosing iteration statement.
|
||||
tests/cases/conformance/statements/continueStatements/invalidWhileContinueStatements.ts(15,9): error TS1107: Jump target cannot cross function boundary.
|
||||
tests/cases/conformance/statements/continueStatements/invalidWhileContinueStatements.ts(22,9): error TS1107: Jump target cannot cross function boundary.
|
||||
@@ -13,7 +13,7 @@ tests/cases/conformance/statements/continueStatements/invalidWhileContinueStatem
|
||||
// naked continue not allowed
|
||||
continue;
|
||||
~~~~~~~~~
|
||||
!!! error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
!!! error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
|
||||
// non-existent label
|
||||
ONE:
|
||||
|
||||
@@ -3,13 +3,13 @@ tests/cases/conformance/parser/ecmascript2017/forAwait/forAwaitInWithDeclIsError
|
||||
tests/cases/conformance/parser/ecmascript2017/forAwait/forAwaitInWithExprIsError.ts(1,12): error TS2304: Cannot find name 'x'.
|
||||
tests/cases/conformance/parser/ecmascript2017/forAwait/forAwaitInWithExprIsError.ts(1,14): error TS1005: 'of' expected.
|
||||
tests/cases/conformance/parser/ecmascript2017/forAwait/forAwaitInWithExprIsError.ts(1,17): error TS2304: Cannot find name 'y'.
|
||||
tests/cases/conformance/parser/ecmascript2017/forAwait/inFunctionDeclWithDeclIsError.ts(3,9): error TS1104: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/conformance/parser/ecmascript2017/forAwait/inFunctionDeclWithExprIsError.ts(3,9): error TS1104: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/conformance/parser/ecmascript2017/forAwait/inGeneratorWithDeclIsError.ts(3,9): error TS1104: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/conformance/parser/ecmascript2017/forAwait/inGeneratorWithExprIsError.ts(3,9): error TS1104: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/conformance/parser/ecmascript2017/forAwait/topLevelWithDeclIsError.ts(1,5): error TS1104: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/conformance/parser/ecmascript2017/forAwait/inFunctionDeclWithDeclIsError.ts(3,9): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/conformance/parser/ecmascript2017/forAwait/inFunctionDeclWithExprIsError.ts(3,9): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/conformance/parser/ecmascript2017/forAwait/inGeneratorWithDeclIsError.ts(3,9): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/conformance/parser/ecmascript2017/forAwait/inGeneratorWithExprIsError.ts(3,9): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/conformance/parser/ecmascript2017/forAwait/topLevelWithDeclIsError.ts(1,5): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/conformance/parser/ecmascript2017/forAwait/topLevelWithDeclIsError.ts(1,23): error TS2304: Cannot find name 'y'.
|
||||
tests/cases/conformance/parser/ecmascript2017/forAwait/topLevelWithExprIsError.ts(1,5): error TS1104: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/conformance/parser/ecmascript2017/forAwait/topLevelWithExprIsError.ts(1,5): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/conformance/parser/ecmascript2017/forAwait/topLevelWithExprIsError.ts(1,12): error TS2304: Cannot find name 'x'.
|
||||
tests/cases/conformance/parser/ecmascript2017/forAwait/topLevelWithExprIsError.ts(1,17): error TS2304: Cannot find name 'y'.
|
||||
|
||||
@@ -17,14 +17,14 @@ tests/cases/conformance/parser/ecmascript2017/forAwait/topLevelWithExprIsError.t
|
||||
==== tests/cases/conformance/parser/ecmascript2017/forAwait/topLevelWithDeclIsError.ts (2 errors) ====
|
||||
for await (const x of y) {
|
||||
~~~~~
|
||||
!!! error TS1104: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
~
|
||||
!!! error TS2304: Cannot find name 'y'.
|
||||
}
|
||||
==== tests/cases/conformance/parser/ecmascript2017/forAwait/topLevelWithExprIsError.ts (3 errors) ====
|
||||
for await (x of y) {
|
||||
~~~~~
|
||||
!!! error TS1104: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
~
|
||||
!!! error TS2304: Cannot find name 'x'.
|
||||
~
|
||||
@@ -51,7 +51,7 @@ tests/cases/conformance/parser/ecmascript2017/forAwait/topLevelWithExprIsError.t
|
||||
let y: any;
|
||||
for await (const x of y) {
|
||||
~~~~~
|
||||
!!! error TS1104: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
}
|
||||
}
|
||||
==== tests/cases/conformance/parser/ecmascript2017/forAwait/inFunctionDeclWithExprIsError.ts (1 errors) ====
|
||||
@@ -59,7 +59,7 @@ tests/cases/conformance/parser/ecmascript2017/forAwait/topLevelWithExprIsError.t
|
||||
let x: any, y: any;
|
||||
for await (x of y) {
|
||||
~~~~~
|
||||
!!! error TS1104: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
}
|
||||
}
|
||||
==== tests/cases/conformance/parser/ecmascript2017/forAwait/inAsyncFunctionWithDeclIsOk.ts (0 errors) ====
|
||||
@@ -91,7 +91,7 @@ tests/cases/conformance/parser/ecmascript2017/forAwait/topLevelWithExprIsError.t
|
||||
let y: any;
|
||||
for await (const x of y) {
|
||||
~~~~~
|
||||
!!! error TS1104: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
}
|
||||
}
|
||||
==== tests/cases/conformance/parser/ecmascript2017/forAwait/inGeneratorWithExprIsError.ts (1 errors) ====
|
||||
@@ -99,6 +99,6 @@ tests/cases/conformance/parser/ecmascript2017/forAwait/topLevelWithExprIsError.t
|
||||
let x: any, y: any;
|
||||
for await (x of y) {
|
||||
~~~~~
|
||||
!!! error TS1104: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
tests/cases/conformance/parser/ecmascript5/Statements/BreakStatements/parser_breakNotInIterationOrSwitchStatement1.ts(1,1): error TS1106: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
tests/cases/conformance/parser/ecmascript5/Statements/BreakStatements/parser_breakNotInIterationOrSwitchStatement1.ts(1,1): error TS1105: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
|
||||
|
||||
==== tests/cases/conformance/parser/ecmascript5/Statements/BreakStatements/parser_breakNotInIterationOrSwitchStatement1.ts (1 errors) ====
|
||||
break;
|
||||
~~~~~~
|
||||
!!! error TS1106: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
!!! error TS1105: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
@@ -1,7 +1,7 @@
|
||||
tests/cases/conformance/parser/ecmascript5/Statements/ContinueStatements/parser_continueNotInIterationStatement1.ts(1,1): error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
tests/cases/conformance/parser/ecmascript5/Statements/ContinueStatements/parser_continueNotInIterationStatement1.ts(1,1): error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
|
||||
|
||||
==== tests/cases/conformance/parser/ecmascript5/Statements/ContinueStatements/parser_continueNotInIterationStatement1.ts (1 errors) ====
|
||||
continue;
|
||||
~~~~~~~~~
|
||||
!!! error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
!!! error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
@@ -1,4 +1,4 @@
|
||||
tests/cases/conformance/parser/ecmascript5/Statements/ContinueStatements/parser_continueNotInIterationStatement3.ts(3,5): error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
tests/cases/conformance/parser/ecmascript5/Statements/ContinueStatements/parser_continueNotInIterationStatement3.ts(3,5): error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
|
||||
|
||||
==== tests/cases/conformance/parser/ecmascript5/Statements/ContinueStatements/parser_continueNotInIterationStatement3.ts (1 errors) ====
|
||||
@@ -6,5 +6,5 @@ tests/cases/conformance/parser/ecmascript5/Statements/ContinueStatements/parser_
|
||||
default:
|
||||
continue;
|
||||
~~~~~~~~~
|
||||
!!! error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
!!! error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
tests/cases/compiler/standaloneBreak.ts(1,1): error TS1106: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
tests/cases/compiler/standaloneBreak.ts(1,1): error TS1105: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
|
||||
|
||||
==== tests/cases/compiler/standaloneBreak.ts (1 errors) ====
|
||||
break;
|
||||
~~~~~~
|
||||
!!! error TS1106: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
!!! error TS1105: A 'break' statement can only be used within an enclosing iteration or switch statement.
|
||||
Reference in New Issue
Block a user