Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/compiler/diagnosticMessages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@
"category": "Error",
"code": 1343
},
"'A label is not allowed here.": {
"A label is not allowed here.": {
"category": "Error",
"code": 1344
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@
</Item>
<Item ItemId=";A_label_is_not_allowed_here_1344" ItemType="0" PsrId="306" Leaf="true">
<Str Cat="Text">
<Val><![CDATA['A label is not allowed here.]]></Val>
<Val><![CDATA[A label is not allowed here.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[此处不允许使用 'A 标签。]]></Val>
</Tgt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@
</Item>
<Item ItemId=";A_label_is_not_allowed_here_1344" ItemType="0" PsrId="306" Leaf="true">
<Str Cat="Text">
<Val><![CDATA['A label is not allowed here.]]></Val>
<Val><![CDATA[A label is not allowed here.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[此處不允許標籤。]]></Val>
</Tgt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@
</Item>
<Item ItemId=";A_label_is_not_allowed_here_1344" ItemType="0" PsrId="306" Leaf="true">
<Str Cat="Text">
<Val><![CDATA['A label is not allowed here.]]></Val>
<Val><![CDATA[A label is not allowed here.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Popisek se tady nepovoluje.]]></Val>
</Tgt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@
</Item>
<Item ItemId=";A_label_is_not_allowed_here_1344" ItemType="0" PsrId="306" Leaf="true">
<Str Cat="Text">
<Val><![CDATA['A label is not allowed here.]]></Val>
<Val><![CDATA[A label is not allowed here.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Eine Bezeichnung ist hier nicht zulässig.]]></Val>
</Tgt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@
</Item>
<Item ItemId=";A_label_is_not_allowed_here_1344" ItemType="0" PsrId="306" Leaf="true">
<Str Cat="Text">
<Val><![CDATA['A label is not allowed here.]]></Val>
<Val><![CDATA[A label is not allowed here.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[No se permite una etiqueta aquí.]]></Val>
</Tgt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@
</Item>
<Item ItemId=";A_label_is_not_allowed_here_1344" ItemType="0" PsrId="306" Leaf="true">
<Str Cat="Text">
<Val><![CDATA['A label is not allowed here.]]></Val>
<Val><![CDATA[A label is not allowed here.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Étiquette non autorisée ici.]]></Val>
</Tgt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@
</Item>
<Item ItemId=";A_label_is_not_allowed_here_1344" ItemType="0" PsrId="306" Leaf="true">
<Str Cat="Text">
<Val><![CDATA['A label is not allowed here.]]></Val>
<Val><![CDATA[A label is not allowed here.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[In questo punto non sono consentite etichette.]]></Val>
</Tgt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@
</Item>
<Item ItemId=";A_label_is_not_allowed_here_1344" ItemType="0" PsrId="306" Leaf="true">
<Str Cat="Text">
<Val><![CDATA['A label is not allowed here.]]></Val>
<Val><![CDATA[A label is not allowed here.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[A ラベルはここでは使用できません。]]></Val>
</Tgt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@
</Item>
<Item ItemId=";A_label_is_not_allowed_here_1344" ItemType="0" PsrId="306" Leaf="true">
<Str Cat="Text">
<Val><![CDATA['A label is not allowed here.]]></Val>
<Val><![CDATA[A label is not allowed here.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[여기서는 레이블을 사용할 수 없습니다.]]></Val>
</Tgt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@
</Item>
<Item ItemId=";A_label_is_not_allowed_here_1344" ItemType="0" PsrId="306" Leaf="true">
<Str Cat="Text">
<Val><![CDATA['A label is not allowed here.]]></Val>
<Val><![CDATA[A label is not allowed here.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Etykieta nie jest dozwolona w tym miejscu.]]></Val>
</Tgt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@
</Item>
<Item ItemId=";A_label_is_not_allowed_here_1344" ItemType="0" PsrId="306" Leaf="true">
<Str Cat="Text">
<Val><![CDATA['A label is not allowed here.]]></Val>
<Val><![CDATA[A label is not allowed here.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Um rótulo não é permitido aqui.]]></Val>
</Tgt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@
</Item>
<Item ItemId=";A_label_is_not_allowed_here_1344" ItemType="0" PsrId="306" Leaf="true">
<Str Cat="Text">
<Val><![CDATA['A label is not allowed here.]]></Val>
<Val><![CDATA[A label is not allowed here.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[Метка здесь запрещена.]]></Val>
</Tgt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@
</Item>
<Item ItemId=";A_label_is_not_allowed_here_1344" ItemType="0" PsrId="306" Leaf="true">
<Str Cat="Text">
<Val><![CDATA['A label is not allowed here.]]></Val>
<Val><![CDATA[A label is not allowed here.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA['Burada etikete izin verilmiyor.]]></Val>
</Tgt>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ambientWithStatements.ts(2,5): error TS1036: Statements are not allowed in ambient contexts.
ambientWithStatements.ts(3,5): error TS1104: A 'continue' statement can only be used within an enclosing iteration statement.
ambientWithStatements.ts(10,5): error TS1344: 'A label is not allowed here.
ambientWithStatements.ts(10,5): error TS1344: A label is not allowed here.
ambientWithStatements.ts(11,5): error TS1108: A 'return' statement can only be used within a function body.
ambientWithStatements.ts(25,5): error TS1101: 'with' statements are not allowed in strict mode.
ambientWithStatements.ts(25,5): error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.
Expand All @@ -22,7 +22,7 @@ ambientWithStatements.ts(25,5): error TS2410: The 'with' statement is not suppor
1;
L: var y;
~
!!! error TS1344: 'A label is not allowed here.
!!! error TS1344: A label is not allowed here.
return;
~~~~~~
!!! error TS1108: A 'return' statement can only be used within a function body.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ constDeclarations-invalidContexts.ts(15,1): error TS1101: 'with' statements are
constDeclarations-invalidContexts.ts(15,1): error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.
constDeclarations-invalidContexts.ts(19,5): error TS1156: 'const' declarations can only be declared inside a block.
constDeclarations-invalidContexts.ts(22,5): error TS1156: 'const' declarations can only be declared inside a block.
constDeclarations-invalidContexts.ts(25,5): error TS1344: 'A label is not allowed here.
constDeclarations-invalidContexts.ts(25,5): error TS1344: A label is not allowed here.
constDeclarations-invalidContexts.ts(25,12): error TS1156: 'const' declarations can only be declared inside a block.
constDeclarations-invalidContexts.ts(28,21): error TS1344: 'A label is not allowed here.
constDeclarations-invalidContexts.ts(28,21): error TS1344: A label is not allowed here.
constDeclarations-invalidContexts.ts(28,29): error TS1156: 'const' declarations can only be declared inside a block.


Expand Down Expand Up @@ -55,14 +55,14 @@ constDeclarations-invalidContexts.ts(28,29): error TS1156: 'const' declarations
if (true)
label: const c8 = 0;
~~~~~
!!! error TS1344: 'A label is not allowed here.
!!! error TS1344: A label is not allowed here.
~~~~~~~~~~~~~
!!! error TS1156: 'const' declarations can only be declared inside a block.

while (false)
label2: label3: label4: const c9 = 0;
~~~~~~
!!! error TS1344: 'A label is not allowed here.
!!! error TS1344: A label is not allowed here.
~~~~~~~~~~~~~
!!! error TS1156: 'const' declarations can only be declared inside a block.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
constDeclarations-scopes.ts(27,1): error TS1101: 'with' statements are not allowed in strict mode.
constDeclarations-scopes.ts(27,1): error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.
constDeclarations-scopes.ts(43,5): error TS1344: 'A label is not allowed here.
constDeclarations-scopes.ts(48,21): error TS1344: 'A label is not allowed here.
constDeclarations-scopes.ts(43,5): error TS1344: A label is not allowed here.
constDeclarations-scopes.ts(48,21): error TS1344: A label is not allowed here.


==== constDeclarations-scopes.ts (4 errors) ====
Expand Down Expand Up @@ -53,14 +53,14 @@ constDeclarations-scopes.ts(48,21): error TS1344: 'A label is not allowed here.
if (true) {
label: const c = 0;
~~~~~
!!! error TS1344: 'A label is not allowed here.
!!! error TS1344: A label is not allowed here.
n = c;
}

while (false) {
label2: label3: label4: const c = 0;
~~~~~~
!!! error TS1344: 'A label is not allowed here.
!!! error TS1344: A label is not allowed here.
n = c;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
constDeclarations-validContexts.ts(18,1): error TS1101: 'with' statements are not allowed in strict mode.
constDeclarations-validContexts.ts(18,1): error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.
constDeclarations-validContexts.ts(31,5): error TS1344: 'A label is not allowed here.
constDeclarations-validContexts.ts(35,21): error TS1344: 'A label is not allowed here.
constDeclarations-validContexts.ts(64,9): error TS1344: 'A label is not allowed here.
constDeclarations-validContexts.ts(31,5): error TS1344: A label is not allowed here.
constDeclarations-validContexts.ts(35,21): error TS1344: A label is not allowed here.
constDeclarations-validContexts.ts(64,9): error TS1344: A label is not allowed here.


==== constDeclarations-validContexts.ts (5 errors) ====
Expand Down Expand Up @@ -42,13 +42,13 @@ constDeclarations-validContexts.ts(64,9): error TS1344: 'A label is not allowed
if (true) {
label: const c8 = 0;
~~~~~
!!! error TS1344: 'A label is not allowed here.
!!! error TS1344: A label is not allowed here.
}

while (false) {
label2: label3: label4: const c9 = 0;
~~~~~~
!!! error TS1344: 'A label is not allowed here.
!!! error TS1344: A label is not allowed here.
}

// Try/catch/finally
Expand Down Expand Up @@ -79,7 +79,7 @@ constDeclarations-validContexts.ts(64,9): error TS1344: 'A label is not allowed
const c16 = 0
label17: const c17 = 0;
~~~~~~~
!!! error TS1344: 'A label is not allowed here.
!!! error TS1344: A label is not allowed here.
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ invalidDoWhileBreakStatements.ts(8,4): error TS1116: A 'break' statement can onl
invalidDoWhileBreakStatements.ts(14,9): error TS1107: Jump target cannot cross function boundary.
invalidDoWhileBreakStatements.ts(21,9): error TS1107: Jump target cannot cross function boundary.
invalidDoWhileBreakStatements.ts(27,5): error TS1116: A 'break' statement can only jump to a label of an enclosing statement.
invalidDoWhileBreakStatements.ts(33,1): error TS1344: 'A label is not allowed here.
invalidDoWhileBreakStatements.ts(33,1): error TS1344: A label is not allowed here.
invalidDoWhileBreakStatements.ts(37,5): error TS1116: A 'break' statement can only jump to a label of an enclosing statement.


Expand Down Expand Up @@ -52,7 +52,7 @@ invalidDoWhileBreakStatements.ts(37,5): error TS1116: A 'break' statement can on
// label on non-loop statement
NINE:
~~~~
!!! error TS1344: 'A label is not allowed here.
!!! error TS1344: A label is not allowed here.
var y = 12;

do {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ invalidDoWhileContinueStatements.ts(8,4): error TS1115: A 'continue' statement c
invalidDoWhileContinueStatements.ts(14,9): error TS1107: Jump target cannot cross function boundary.
invalidDoWhileContinueStatements.ts(21,9): error TS1107: Jump target cannot cross function boundary.
invalidDoWhileContinueStatements.ts(27,5): error TS1115: A 'continue' statement can only jump to a label of an enclosing iteration statement.
invalidDoWhileContinueStatements.ts(33,1): error TS1344: 'A label is not allowed here.
invalidDoWhileContinueStatements.ts(33,1): error TS1344: A label is not allowed here.
invalidDoWhileContinueStatements.ts(37,5): error TS1115: A 'continue' statement can only jump to a label of an enclosing iteration statement.


Expand Down Expand Up @@ -52,7 +52,7 @@ invalidDoWhileContinueStatements.ts(37,5): error TS1115: A 'continue' statement
// label on non-loop statement
NINE:
~~~~
!!! error TS1344: 'A label is not allowed here.
!!! error TS1344: A label is not allowed here.
var y = 12;

do {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ invalidForBreakStatements.ts(8,9): error TS1116: A 'break' statement can only ju
invalidForBreakStatements.ts(14,9): error TS1107: Jump target cannot cross function boundary.
invalidForBreakStatements.ts(21,9): error TS1107: Jump target cannot cross function boundary.
invalidForBreakStatements.ts(27,5): error TS1116: A 'break' statement can only jump to a label of an enclosing statement.
invalidForBreakStatements.ts(32,1): error TS1344: 'A label is not allowed here.
invalidForBreakStatements.ts(32,1): error TS1344: A label is not allowed here.
invalidForBreakStatements.ts(36,5): error TS1116: A 'break' statement can only jump to a label of an enclosing statement.


Expand Down Expand Up @@ -51,7 +51,7 @@ invalidForBreakStatements.ts(36,5): error TS1116: A 'break' statement can only j
// label on non-loop statement
NINE:
~~~~
!!! error TS1344: 'A label is not allowed here.
!!! error TS1344: A label is not allowed here.
var y = 12;

for(;;) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ invalidForContinueStatements.ts(8,9): error TS1115: A 'continue' statement can o
invalidForContinueStatements.ts(14,9): error TS1107: Jump target cannot cross function boundary.
invalidForContinueStatements.ts(21,9): error TS1107: Jump target cannot cross function boundary.
invalidForContinueStatements.ts(27,5): error TS1115: A 'continue' statement can only jump to a label of an enclosing iteration statement.
invalidForContinueStatements.ts(32,1): error TS1344: 'A label is not allowed here.
invalidForContinueStatements.ts(32,1): error TS1344: A label is not allowed here.
invalidForContinueStatements.ts(36,5): error TS1115: A 'continue' statement can only jump to a label of an enclosing iteration statement.


Expand Down Expand Up @@ -51,7 +51,7 @@ invalidForContinueStatements.ts(36,5): error TS1115: A 'continue' statement can
// label on non-loop statement
NINE:
~~~~
!!! error TS1344: 'A label is not allowed here.
!!! error TS1344: A label is not allowed here.
var y = 12;

for(;;) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ invalidForInBreakStatements.ts(8,19): error TS1116: A 'break' statement can only
invalidForInBreakStatements.ts(14,9): error TS1107: Jump target cannot cross function boundary.
invalidForInBreakStatements.ts(21,9): error TS1107: Jump target cannot cross function boundary.
invalidForInBreakStatements.ts(27,5): error TS1116: A 'break' statement can only jump to a label of an enclosing statement.
invalidForInBreakStatements.ts(33,1): error TS1344: 'A label is not allowed here.
invalidForInBreakStatements.ts(33,1): error TS1344: A label is not allowed here.
invalidForInBreakStatements.ts(37,5): error TS1116: A 'break' statement can only jump to a label of an enclosing statement.


Expand Down Expand Up @@ -52,7 +52,7 @@ invalidForInBreakStatements.ts(37,5): error TS1116: A 'break' statement can only
// label on non-loop statement
NINE:
~~~~
!!! error TS1344: 'A label is not allowed here.
!!! error TS1344: A label is not allowed here.
var y = 12;

for (var x in {}) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ invalidForInContinueStatements.ts(8,19): error TS1115: A 'continue' statement ca
invalidForInContinueStatements.ts(14,9): error TS1107: Jump target cannot cross function boundary.
invalidForInContinueStatements.ts(21,9): error TS1107: Jump target cannot cross function boundary.
invalidForInContinueStatements.ts(27,5): error TS1115: A 'continue' statement can only jump to a label of an enclosing iteration statement.
invalidForInContinueStatements.ts(33,1): error TS1344: 'A label is not allowed here.
invalidForInContinueStatements.ts(33,1): error TS1344: A label is not allowed here.
invalidForInContinueStatements.ts(37,5): error TS1115: A 'continue' statement can only jump to a label of an enclosing iteration statement.


Expand Down Expand Up @@ -52,7 +52,7 @@ invalidForInContinueStatements.ts(37,5): error TS1115: A 'continue' statement ca
// label on non-loop statement
NINE:
~~~~
!!! error TS1344: 'A label is not allowed here.
!!! error TS1344: A label is not allowed here.
var y = 12;

for (var x in {}) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ invalidWhileBreakStatements.ts(8,14): error TS1116: A 'break' statement can only
invalidWhileBreakStatements.ts(14,9): error TS1107: Jump target cannot cross function boundary.
invalidWhileBreakStatements.ts(21,9): error TS1107: Jump target cannot cross function boundary.
invalidWhileBreakStatements.ts(27,5): error TS1116: A 'break' statement can only jump to a label of an enclosing statement.
invalidWhileBreakStatements.ts(33,1): error TS1344: 'A label is not allowed here.
invalidWhileBreakStatements.ts(33,1): error TS1344: A label is not allowed here.
invalidWhileBreakStatements.ts(37,5): error TS1116: A 'break' statement can only jump to a label of an enclosing statement.


Expand Down Expand Up @@ -52,7 +52,7 @@ invalidWhileBreakStatements.ts(37,5): error TS1116: A 'break' statement can only
// label on non-loop statement
NINE:
~~~~
!!! error TS1344: 'A label is not allowed here.
!!! error TS1344: A label is not allowed here.
var y = 12;

while (true) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ invalidWhileContinueStatements.ts(8,14): error TS1115: A 'continue' statement ca
invalidWhileContinueStatements.ts(14,9): error TS1107: Jump target cannot cross function boundary.
invalidWhileContinueStatements.ts(21,9): error TS1107: Jump target cannot cross function boundary.
invalidWhileContinueStatements.ts(27,5): error TS1115: A 'continue' statement can only jump to a label of an enclosing iteration statement.
invalidWhileContinueStatements.ts(33,1): error TS1344: 'A label is not allowed here.
invalidWhileContinueStatements.ts(33,1): error TS1344: A label is not allowed here.
invalidWhileContinueStatements.ts(37,5): error TS1115: A 'continue' statement can only jump to a label of an enclosing iteration statement.


Expand Down Expand Up @@ -52,7 +52,7 @@ invalidWhileContinueStatements.ts(37,5): error TS1115: A 'continue' statement ca
// label on non-loop statement
NINE:
~~~~
!!! error TS1344: 'A label is not allowed here.
!!! error TS1344: A label is not allowed here.
var y = 12;

while (true) {
Expand Down
Loading