Skip to content

Commit 32bcc97

Browse files
committed
Revert diagnostic error number change
1 parent c72509b commit 32bcc97

19 files changed

+49
-49
lines changed

src/compiler/diagnosticMessages.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,15 +293,15 @@
293293
},
294294
"A 'for-await-of' statement is only allowed within an async function or async generator.": {
295295
"category": "Error",
296-
"code": 1104
296+
"code": 1103
297297
},
298298
"A 'continue' statement can only be used within an enclosing iteration statement.": {
299299
"category": "Error",
300-
"code": 1105
300+
"code": 1104
301301
},
302302
"A 'break' statement can only be used within an enclosing iteration or switch statement.": {
303303
"category": "Error",
304-
"code": 1106
304+
"code": 1105
305305
},
306306
"Jump target cannot cross function boundary.": {
307307
"category": "Error",

tests/baselines/reference/ambientWithStatements.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tests/cases/compiler/ambientWithStatements.ts(2,5): error TS1036: Statements are not allowed in ambient contexts.
2-
tests/cases/compiler/ambientWithStatements.ts(3,5): error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
2+
tests/cases/compiler/ambientWithStatements.ts(3,5): error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
33
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.
44
tests/cases/compiler/ambientWithStatements.ts(11,5): error TS1108: A 'return' statement can only be used within a function body.
55
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
1212
!!! error TS1036: Statements are not allowed in ambient contexts.
1313
continue;
1414
~~~~~~~~~
15-
!!! error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
15+
!!! error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
1616
debugger;
1717
do { } while (true);
1818
var x;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
tests/cases/compiler/breakNotInIterationOrSwitchStatement1.ts(1,1): error TS1106: A 'break' statement can only be used within an enclosing iteration or switch statement.
1+
tests/cases/compiler/breakNotInIterationOrSwitchStatement1.ts(1,1): error TS1105: A 'break' statement can only be used within an enclosing iteration or switch statement.
22

33

44
==== tests/cases/compiler/breakNotInIterationOrSwitchStatement1.ts (1 errors) ====
55
break;
66
~~~~~~
7-
!!! error TS1106: A 'break' statement can only be used within an enclosing iteration or switch statement.
7+
!!! error TS1105: A 'break' statement can only be used within an enclosing iteration or switch statement.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
tests/cases/compiler/continueNotInIterationStatement1.ts(1,1): error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
1+
tests/cases/compiler/continueNotInIterationStatement1.ts(1,1): error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
22

33

44
==== tests/cases/compiler/continueNotInIterationStatement1.ts (1 errors) ====
55
continue;
66
~~~~~~~~~
7-
!!! error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
7+
!!! error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
tests/cases/compiler/continueNotInIterationStatement3.ts(3,5): error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
1+
tests/cases/compiler/continueNotInIterationStatement3.ts(3,5): error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
22

33

44
==== tests/cases/compiler/continueNotInIterationStatement3.ts (1 errors) ====
55
switch (0) {
66
default:
77
continue;
88
~~~~~~~~~
9-
!!! error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
9+
!!! error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
1010
}

tests/baselines/reference/invalidDoWhileBreakStatements.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
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.
1+
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.
22
tests/cases/conformance/statements/breakStatements/invalidDoWhileBreakStatements.ts(9,4): error TS1116: A 'break' statement can only jump to a label of an enclosing statement.
33
tests/cases/conformance/statements/breakStatements/invalidDoWhileBreakStatements.ts(15,9): error TS1107: Jump target cannot cross function boundary.
44
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
1313
// naked break not allowed
1414
break;
1515
~~~~~~
16-
!!! error TS1106: A 'break' statement can only be used within an enclosing iteration or switch statement.
16+
!!! error TS1105: A 'break' statement can only be used within an enclosing iteration or switch statement.
1717

1818
// non-existent label
1919
ONE:

tests/baselines/reference/invalidDoWhileContinueStatements.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/conformance/statements/continueStatements/invalidDoWhileContinueStatements.ts(5,1): error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
1+
tests/cases/conformance/statements/continueStatements/invalidDoWhileContinueStatements.ts(5,1): error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
22
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.
33
tests/cases/conformance/statements/continueStatements/invalidDoWhileContinueStatements.ts(15,9): error TS1107: Jump target cannot cross function boundary.
44
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
1313
// naked continue not allowed
1414
continue;
1515
~~~~~~~~~
16-
!!! error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
16+
!!! error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
1717

1818
// non-existent label
1919
ONE:

tests/baselines/reference/invalidForBreakStatements.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
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.
1+
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.
22
tests/cases/conformance/statements/breakStatements/invalidForBreakStatements.ts(9,9): error TS1116: A 'break' statement can only jump to a label of an enclosing statement.
33
tests/cases/conformance/statements/breakStatements/invalidForBreakStatements.ts(15,9): error TS1107: Jump target cannot cross function boundary.
44
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(
1313
// naked break not allowed
1414
break;
1515
~~~~~~
16-
!!! error TS1106: A 'break' statement can only be used within an enclosing iteration or switch statement.
16+
!!! error TS1105: A 'break' statement can only be used within an enclosing iteration or switch statement.
1717

1818
// non-existent label
1919
ONE:

tests/baselines/reference/invalidForContinueStatements.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/conformance/statements/continueStatements/invalidForContinueStatements.ts(5,1): error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
1+
tests/cases/conformance/statements/continueStatements/invalidForContinueStatements.ts(5,1): error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
22
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.
33
tests/cases/conformance/statements/continueStatements/invalidForContinueStatements.ts(15,9): error TS1107: Jump target cannot cross function boundary.
44
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
1313
// naked continue not allowed
1414
continue;
1515
~~~~~~~~~
16-
!!! error TS1105: A 'continue' statement can only be used within an enclosing iteration statement.
16+
!!! error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
1717

1818
// non-existent label
1919
ONE:

tests/baselines/reference/invalidForInBreakStatements.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
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.
1+
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.
22
tests/cases/conformance/statements/breakStatements/invalidForInBreakStatements.ts(9,19): error TS1116: A 'break' statement can only jump to a label of an enclosing statement.
33
tests/cases/conformance/statements/breakStatements/invalidForInBreakStatements.ts(15,9): error TS1107: Jump target cannot cross function boundary.
44
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
1313
// naked break not allowed
1414
break;
1515
~~~~~~
16-
!!! error TS1106: A 'break' statement can only be used within an enclosing iteration or switch statement.
16+
!!! error TS1105: A 'break' statement can only be used within an enclosing iteration or switch statement.
1717

1818
// non-existent label
1919
ONE:

0 commit comments

Comments
 (0)