diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 46c280799d7f9..17586e927d0ac 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -1111,7 +1111,7 @@ "category": "Error", "code": 1343 }, - "'A label is not allowed here.": { + "A label is not allowed here.": { "category": "Error", "code": 1344 }, diff --git a/tests/baselines/reference/ambientWithStatements(alwaysstrict=true).errors.txt b/tests/baselines/reference/ambientWithStatements(alwaysstrict=true).errors.txt index 8d04ac6a78d20..b3a6263aecfbb 100644 --- a/tests/baselines/reference/ambientWithStatements(alwaysstrict=true).errors.txt +++ b/tests/baselines/reference/ambientWithStatements(alwaysstrict=true).errors.txt @@ -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'. @@ -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. diff --git a/tests/baselines/reference/constDeclarations-invalidContexts(alwaysstrict=true).errors.txt b/tests/baselines/reference/constDeclarations-invalidContexts(alwaysstrict=true).errors.txt index 953604c1da149..f2cd6c31aa61f 100644 --- a/tests/baselines/reference/constDeclarations-invalidContexts(alwaysstrict=true).errors.txt +++ b/tests/baselines/reference/constDeclarations-invalidContexts(alwaysstrict=true).errors.txt @@ -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. @@ -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. diff --git a/tests/baselines/reference/constDeclarations-scopes(alwaysstrict=true).errors.txt b/tests/baselines/reference/constDeclarations-scopes(alwaysstrict=true).errors.txt index 8b260da649e04..ab622ba3e5bdc 100644 --- a/tests/baselines/reference/constDeclarations-scopes(alwaysstrict=true).errors.txt +++ b/tests/baselines/reference/constDeclarations-scopes(alwaysstrict=true).errors.txt @@ -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) ==== @@ -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; } diff --git a/tests/baselines/reference/constDeclarations-validContexts(alwaysstrict=true).errors.txt b/tests/baselines/reference/constDeclarations-validContexts(alwaysstrict=true).errors.txt index 24f9a4a91235a..f65eb0f67bdde 100644 --- a/tests/baselines/reference/constDeclarations-validContexts(alwaysstrict=true).errors.txt +++ b/tests/baselines/reference/constDeclarations-validContexts(alwaysstrict=true).errors.txt @@ -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) ==== @@ -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 @@ -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. } } diff --git a/tests/baselines/reference/invalidDoWhileBreakStatements.errors.txt b/tests/baselines/reference/invalidDoWhileBreakStatements.errors.txt index 652ea2fc94525..a46824605937d 100644 --- a/tests/baselines/reference/invalidDoWhileBreakStatements.errors.txt +++ b/tests/baselines/reference/invalidDoWhileBreakStatements.errors.txt @@ -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. @@ -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 { diff --git a/tests/baselines/reference/invalidDoWhileContinueStatements.errors.txt b/tests/baselines/reference/invalidDoWhileContinueStatements.errors.txt index 988053a007fde..1d019545d0fce 100644 --- a/tests/baselines/reference/invalidDoWhileContinueStatements.errors.txt +++ b/tests/baselines/reference/invalidDoWhileContinueStatements.errors.txt @@ -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. @@ -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 { diff --git a/tests/baselines/reference/invalidForBreakStatements.errors.txt b/tests/baselines/reference/invalidForBreakStatements.errors.txt index 47fbf6fc206ef..e5647bf0f9436 100644 --- a/tests/baselines/reference/invalidForBreakStatements.errors.txt +++ b/tests/baselines/reference/invalidForBreakStatements.errors.txt @@ -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. @@ -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(;;) { diff --git a/tests/baselines/reference/invalidForContinueStatements.errors.txt b/tests/baselines/reference/invalidForContinueStatements.errors.txt index 146dbe4368b0f..fe25a9c9e31a2 100644 --- a/tests/baselines/reference/invalidForContinueStatements.errors.txt +++ b/tests/baselines/reference/invalidForContinueStatements.errors.txt @@ -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. @@ -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(;;) { diff --git a/tests/baselines/reference/invalidForInBreakStatements.errors.txt b/tests/baselines/reference/invalidForInBreakStatements.errors.txt index bac0c88a3d204..95d1bef00c6c8 100644 --- a/tests/baselines/reference/invalidForInBreakStatements.errors.txt +++ b/tests/baselines/reference/invalidForInBreakStatements.errors.txt @@ -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. @@ -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 {}) { diff --git a/tests/baselines/reference/invalidForInContinueStatements.errors.txt b/tests/baselines/reference/invalidForInContinueStatements.errors.txt index 7a49045f8baeb..31d802c9595fc 100644 --- a/tests/baselines/reference/invalidForInContinueStatements.errors.txt +++ b/tests/baselines/reference/invalidForInContinueStatements.errors.txt @@ -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. @@ -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 {}) { diff --git a/tests/baselines/reference/invalidWhileBreakStatements.errors.txt b/tests/baselines/reference/invalidWhileBreakStatements.errors.txt index b022d9f2d4553..df4215de2d1bc 100644 --- a/tests/baselines/reference/invalidWhileBreakStatements.errors.txt +++ b/tests/baselines/reference/invalidWhileBreakStatements.errors.txt @@ -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. @@ -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) { diff --git a/tests/baselines/reference/invalidWhileContinueStatements.errors.txt b/tests/baselines/reference/invalidWhileContinueStatements.errors.txt index fed2a6c20ef13..b588b657e6722 100644 --- a/tests/baselines/reference/invalidWhileContinueStatements.errors.txt +++ b/tests/baselines/reference/invalidWhileContinueStatements.errors.txt @@ -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. @@ -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) { diff --git a/tests/baselines/reference/jsFileCompilationBindReachabilityErrors(alwaysstrict=true).errors.txt b/tests/baselines/reference/jsFileCompilationBindReachabilityErrors(alwaysstrict=true).errors.txt index b71c353ccc3c2..cd0aaaf97e07d 100644 --- a/tests/baselines/reference/jsFileCompilationBindReachabilityErrors(alwaysstrict=true).errors.txt +++ b/tests/baselines/reference/jsFileCompilationBindReachabilityErrors(alwaysstrict=true).errors.txt @@ -1,6 +1,6 @@ a.js(3,9): error TS7029: Fallthrough case in switch. a.js(16,5): error TS7027: Unreachable code detected. -a.js(19,1): error TS1344: 'A label is not allowed here. +a.js(19,1): error TS1344: A label is not allowed here. a.js(19,1): error TS7028: Unused label. @@ -29,6 +29,6 @@ a.js(19,1): error TS7028: Unused label. label1: var x2 = 10; ~~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. ~~~~~~ !!! error TS7028: Unused label. \ No newline at end of file diff --git a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1(target=es2015).errors.txt b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1(target=es2015).errors.txt index 7ea8c06f82b50..cef918e7695e8 100644 --- a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1(target=es2015).errors.txt +++ b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash1(target=es2015).errors.txt @@ -1,4 +1,4 @@ -labeledStatementDeclarationListInLoopNoCrash1.ts(3,3): error TS1344: 'A label is not allowed here. +labeledStatementDeclarationListInLoopNoCrash1.ts(3,3): error TS1344: A label is not allowed here. labeledStatementDeclarationListInLoopNoCrash1.ts(3,11): error TS1123: Variable declaration list cannot be empty. @@ -7,7 +7,7 @@ labeledStatementDeclarationListInLoopNoCrash1.ts(3,11): error TS1123: Variable d var v0 = x; foo: var; ~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. !!! error TS1123: Variable declaration list cannot be empty. (function() { return x + v0}); diff --git a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash2(target=es2015).errors.txt b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash2(target=es2015).errors.txt index cccda1a9a35dc..4f9439db8ddfa 100644 --- a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash2(target=es2015).errors.txt +++ b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash2(target=es2015).errors.txt @@ -1,4 +1,4 @@ -labeledStatementDeclarationListInLoopNoCrash2.ts(3,3): error TS1344: 'A label is not allowed here. +labeledStatementDeclarationListInLoopNoCrash2.ts(3,3): error TS1344: A label is not allowed here. ==== labeledStatementDeclarationListInLoopNoCrash2.ts (1 errors) ==== @@ -6,7 +6,7 @@ labeledStatementDeclarationListInLoopNoCrash2.ts(3,3): error TS1344: 'A label is var v0 = x; foo: var y; ~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. (function() { return x + v0}); } \ No newline at end of file diff --git a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3(target=es2015).errors.txt b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3(target=es2015).errors.txt index a0fa31e7803f2..4b57df6c89306 100644 --- a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3(target=es2015).errors.txt +++ b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash3(target=es2015).errors.txt @@ -9,7 +9,7 @@ labeledStatementDeclarationListInLoopNoCrash3.ts(15,42): error TS1005: ')' expec labeledStatementDeclarationListInLoopNoCrash3.ts(15,53): error TS2304: Cannot find name 'fontSize'. labeledStatementDeclarationListInLoopNoCrash3.ts(15,61): error TS1005: ';' expected. labeledStatementDeclarationListInLoopNoCrash3.ts(16,12): error TS1005: ';' expected. -labeledStatementDeclarationListInLoopNoCrash3.ts(16,12): error TS1344: 'A label is not allowed here. +labeledStatementDeclarationListInLoopNoCrash3.ts(16,12): error TS1344: A label is not allowed here. labeledStatementDeclarationListInLoopNoCrash3.ts(16,23): error TS1134: Variable declaration expected. labeledStatementDeclarationListInLoopNoCrash3.ts(16,38): error TS2592: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig. labeledStatementDeclarationListInLoopNoCrash3.ts(16,39): error TS1005: ')' expected. @@ -58,7 +58,7 @@ labeledStatementDeclarationListInLoopNoCrash3.ts(22,1): error TS1160: Unterminat ~~~~~~ !!! error TS1005: ';' expected. ~~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. ~ !!! error TS1134: Variable declaration expected. ~ diff --git a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4(target=es2015).errors.txt b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4(target=es2015).errors.txt index 8c24d90a8a7dc..e3633715d4777 100644 --- a/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4(target=es2015).errors.txt +++ b/tests/baselines/reference/labeledStatementDeclarationListInLoopNoCrash4(target=es2015).errors.txt @@ -9,7 +9,7 @@ labeledStatementDeclarationListInLoopNoCrash4.ts(13,42): error TS1005: ')' expec labeledStatementDeclarationListInLoopNoCrash4.ts(13,53): error TS2304: Cannot find name 'fontSize'. labeledStatementDeclarationListInLoopNoCrash4.ts(13,61): error TS1005: ';' expected. labeledStatementDeclarationListInLoopNoCrash4.ts(14,12): error TS1005: ';' expected. -labeledStatementDeclarationListInLoopNoCrash4.ts(14,12): error TS1344: 'A label is not allowed here. +labeledStatementDeclarationListInLoopNoCrash4.ts(14,12): error TS1344: A label is not allowed here. labeledStatementDeclarationListInLoopNoCrash4.ts(14,27): error TS1005: ',' expected. labeledStatementDeclarationListInLoopNoCrash4.ts(20,1): error TS1005: '}' expected. labeledStatementDeclarationListInLoopNoCrash4.ts(20,1): error TS1160: Unterminated template literal. @@ -53,7 +53,7 @@ labeledStatementDeclarationListInLoopNoCrash4.ts(20,1): error TS1160: Unterminat ~~~~~~ !!! error TS1005: ';' expected. ~~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. ~~ ].join(';') ~~~~~~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=commonjs).errors.txt b/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=commonjs).errors.txt index 89400ea7ad53d..18a83d13ce6db 100644 --- a/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=commonjs).errors.txt +++ b/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=commonjs).errors.txt @@ -1,5 +1,5 @@ labeledStatementExportDeclarationNoCrash1.ts(3,14): error TS1155: 'const' declarations must be initialized. -labeledStatementExportDeclarationNoCrash1.ts(4,1): error TS1344: 'A label is not allowed here. +labeledStatementExportDeclarationNoCrash1.ts(4,1): error TS1344: A label is not allowed here. labeledStatementExportDeclarationNoCrash1.ts(5,1): error TS1184: Modifiers cannot appear here. labeledStatementExportDeclarationNoCrash1.ts(5,14): error TS1155: 'const' declarations must be initialized. @@ -12,7 +12,7 @@ labeledStatementExportDeclarationNoCrash1.ts(5,14): error TS1155: 'const' declar !!! error TS1155: 'const' declarations must be initialized. subTitle: ~~~~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. export const title: string ~~~~~~ !!! error TS1184: Modifiers cannot appear here. diff --git a/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=esnext).errors.txt b/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=esnext).errors.txt index 89400ea7ad53d..18a83d13ce6db 100644 --- a/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=esnext).errors.txt +++ b/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=esnext).errors.txt @@ -1,5 +1,5 @@ labeledStatementExportDeclarationNoCrash1.ts(3,14): error TS1155: 'const' declarations must be initialized. -labeledStatementExportDeclarationNoCrash1.ts(4,1): error TS1344: 'A label is not allowed here. +labeledStatementExportDeclarationNoCrash1.ts(4,1): error TS1344: A label is not allowed here. labeledStatementExportDeclarationNoCrash1.ts(5,1): error TS1184: Modifiers cannot appear here. labeledStatementExportDeclarationNoCrash1.ts(5,14): error TS1155: 'const' declarations must be initialized. @@ -12,7 +12,7 @@ labeledStatementExportDeclarationNoCrash1.ts(5,14): error TS1155: 'const' declar !!! error TS1155: 'const' declarations must be initialized. subTitle: ~~~~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. export const title: string ~~~~~~ !!! error TS1184: Modifiers cannot appear here. diff --git a/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=system).errors.txt b/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=system).errors.txt index 4837a8b7703c3..1d7e416fc4d94 100644 --- a/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=system).errors.txt +++ b/tests/baselines/reference/labeledStatementExportDeclarationNoCrash1(module=system).errors.txt @@ -1,6 +1,6 @@ error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. labeledStatementExportDeclarationNoCrash1.ts(3,14): error TS1155: 'const' declarations must be initialized. -labeledStatementExportDeclarationNoCrash1.ts(4,1): error TS1344: 'A label is not allowed here. +labeledStatementExportDeclarationNoCrash1.ts(4,1): error TS1344: A label is not allowed here. labeledStatementExportDeclarationNoCrash1.ts(5,1): error TS1184: Modifiers cannot appear here. labeledStatementExportDeclarationNoCrash1.ts(5,14): error TS1155: 'const' declarations must be initialized. @@ -14,7 +14,7 @@ labeledStatementExportDeclarationNoCrash1.ts(5,14): error TS1155: 'const' declar !!! error TS1155: 'const' declarations must be initialized. subTitle: ~~~~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. export const title: string ~~~~~~ !!! error TS1184: Modifiers cannot appear here. diff --git a/tests/baselines/reference/labeledStatementWithLabel.errors.txt b/tests/baselines/reference/labeledStatementWithLabel.errors.txt index 303c4f4a00783..bdff9813abe54 100644 --- a/tests/baselines/reference/labeledStatementWithLabel.errors.txt +++ b/tests/baselines/reference/labeledStatementWithLabel.errors.txt @@ -1,59 +1,59 @@ -labeledStatementWithLabel.ts(1,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel.ts(2,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel.ts(3,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel.ts(4,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel.ts(5,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel.ts(6,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel.ts(7,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel.ts(8,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel.ts(9,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel.ts(11,1): error TS1344: 'A label is not allowed here. +labeledStatementWithLabel.ts(1,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel.ts(2,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel.ts(3,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel.ts(4,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel.ts(5,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel.ts(6,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel.ts(7,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel.ts(8,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel.ts(9,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel.ts(11,1): error TS1344: A label is not allowed here. labeledStatementWithLabel.ts(11,8): error TS1235: A namespace declaration is only allowed at the top level of a namespace or module. -labeledStatementWithLabel.ts(12,1): error TS1344: 'A label is not allowed here. +labeledStatementWithLabel.ts(12,1): error TS1344: A label is not allowed here. labeledStatementWithLabel.ts(12,8): error TS1235: A namespace declaration is only allowed at the top level of a namespace or module. -labeledStatementWithLabel.ts(13,1): error TS1344: 'A label is not allowed here. +labeledStatementWithLabel.ts(13,1): error TS1344: A label is not allowed here. ==== labeledStatementWithLabel.ts (14 errors) ==== label: function fn() { } ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: function* gen() { } ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: async function gen1() { } ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: enum E {} ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: interface I {} ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: class C { } ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: var a = 1; ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: let b = 1; ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: const c = 1; ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: namespace M { } ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. ~~~~~~~~~ !!! error TS1235: A namespace declaration is only allowed at the top level of a namespace or module. label: namespace N {} ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. ~~~~~~~~~ !!! error TS1235: A namespace declaration is only allowed at the top level of a namespace or module. label: type T = {} ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. \ No newline at end of file diff --git a/tests/baselines/reference/labeledStatementWithLabel_es2015.errors.txt b/tests/baselines/reference/labeledStatementWithLabel_es2015.errors.txt index c332284ea0ce4..b14781ea78de0 100644 --- a/tests/baselines/reference/labeledStatementWithLabel_es2015.errors.txt +++ b/tests/baselines/reference/labeledStatementWithLabel_es2015.errors.txt @@ -1,59 +1,59 @@ -labeledStatementWithLabel_es2015.ts(1,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel_es2015.ts(2,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel_es2015.ts(3,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel_es2015.ts(4,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel_es2015.ts(5,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel_es2015.ts(6,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel_es2015.ts(7,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel_es2015.ts(8,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel_es2015.ts(9,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel_es2015.ts(11,1): error TS1344: 'A label is not allowed here. +labeledStatementWithLabel_es2015.ts(1,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel_es2015.ts(2,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel_es2015.ts(3,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel_es2015.ts(4,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel_es2015.ts(5,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel_es2015.ts(6,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel_es2015.ts(7,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel_es2015.ts(8,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel_es2015.ts(9,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel_es2015.ts(11,1): error TS1344: A label is not allowed here. labeledStatementWithLabel_es2015.ts(11,8): error TS1235: A namespace declaration is only allowed at the top level of a namespace or module. -labeledStatementWithLabel_es2015.ts(12,1): error TS1344: 'A label is not allowed here. +labeledStatementWithLabel_es2015.ts(12,1): error TS1344: A label is not allowed here. labeledStatementWithLabel_es2015.ts(12,8): error TS1235: A namespace declaration is only allowed at the top level of a namespace or module. -labeledStatementWithLabel_es2015.ts(13,1): error TS1344: 'A label is not allowed here. +labeledStatementWithLabel_es2015.ts(13,1): error TS1344: A label is not allowed here. ==== labeledStatementWithLabel_es2015.ts (14 errors) ==== label: function fn() { } ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: function* gen() { } ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: async function gen1() { } ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: enum E {} ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: interface I {} ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: class C { } ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: var a = 1; ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: let b = 1; ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: const c = 1; ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: namespace M { } ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. ~~~~~~~~~ !!! error TS1235: A namespace declaration is only allowed at the top level of a namespace or module. label: namespace N {} ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. ~~~~~~~~~ !!! error TS1235: A namespace declaration is only allowed at the top level of a namespace or module. label: type T = {} ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. \ No newline at end of file diff --git a/tests/baselines/reference/labeledStatementWithLabel_strict.errors.txt b/tests/baselines/reference/labeledStatementWithLabel_strict.errors.txt index 4aaa73d420b0e..66c9de93ebe6b 100644 --- a/tests/baselines/reference/labeledStatementWithLabel_strict.errors.txt +++ b/tests/baselines/reference/labeledStatementWithLabel_strict.errors.txt @@ -1,60 +1,60 @@ -labeledStatementWithLabel_strict.ts(2,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel_strict.ts(3,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel_strict.ts(4,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel_strict.ts(5,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel_strict.ts(6,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel_strict.ts(7,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel_strict.ts(8,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel_strict.ts(9,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel_strict.ts(10,1): error TS1344: 'A label is not allowed here. -labeledStatementWithLabel_strict.ts(12,1): error TS1344: 'A label is not allowed here. +labeledStatementWithLabel_strict.ts(2,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel_strict.ts(3,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel_strict.ts(4,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel_strict.ts(5,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel_strict.ts(6,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel_strict.ts(7,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel_strict.ts(8,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel_strict.ts(9,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel_strict.ts(10,1): error TS1344: A label is not allowed here. +labeledStatementWithLabel_strict.ts(12,1): error TS1344: A label is not allowed here. labeledStatementWithLabel_strict.ts(12,8): error TS1235: A namespace declaration is only allowed at the top level of a namespace or module. -labeledStatementWithLabel_strict.ts(13,1): error TS1344: 'A label is not allowed here. +labeledStatementWithLabel_strict.ts(13,1): error TS1344: A label is not allowed here. labeledStatementWithLabel_strict.ts(13,8): error TS1235: A namespace declaration is only allowed at the top level of a namespace or module. -labeledStatementWithLabel_strict.ts(14,1): error TS1344: 'A label is not allowed here. +labeledStatementWithLabel_strict.ts(14,1): error TS1344: A label is not allowed here. ==== labeledStatementWithLabel_strict.ts (14 errors) ==== "use strict" label: function fn() { } ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: function* gen() { } ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: async function gen1() { } ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: enum E {} ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: interface I {} ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: class C { } ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: var a = 1; ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: let b = 1; ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: const c = 1; ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. label: namespace M { } ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. ~~~~~~~~~ !!! error TS1235: A namespace declaration is only allowed at the top level of a namespace or module. label: namespace N {} ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. ~~~~~~~~~ !!! error TS1235: A namespace declaration is only allowed at the top level of a namespace or module. label: type T = {} ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. \ No newline at end of file diff --git a/tests/baselines/reference/letDeclarations-invalidContexts.errors.txt b/tests/baselines/reference/letDeclarations-invalidContexts.errors.txt index 4f913ff135ec0..97eda3d2055ab 100644 --- a/tests/baselines/reference/letDeclarations-invalidContexts.errors.txt +++ b/tests/baselines/reference/letDeclarations-invalidContexts.errors.txt @@ -6,9 +6,9 @@ letDeclarations-invalidContexts.ts(15,1): error TS1101: 'with' statements are no letDeclarations-invalidContexts.ts(15,1): error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'. letDeclarations-invalidContexts.ts(19,5): error TS1156: 'let' declarations can only be declared inside a block. letDeclarations-invalidContexts.ts(22,5): error TS1156: 'let' declarations can only be declared inside a block. -letDeclarations-invalidContexts.ts(25,5): error TS1344: 'A label is not allowed here. +letDeclarations-invalidContexts.ts(25,5): error TS1344: A label is not allowed here. letDeclarations-invalidContexts.ts(25,12): error TS1156: 'let' declarations can only be declared inside a block. -letDeclarations-invalidContexts.ts(28,21): error TS1344: 'A label is not allowed here. +letDeclarations-invalidContexts.ts(28,21): error TS1344: A label is not allowed here. letDeclarations-invalidContexts.ts(28,29): error TS1156: 'let' declarations can only be declared inside a block. @@ -55,14 +55,14 @@ letDeclarations-invalidContexts.ts(28,29): error TS1156: 'let' declarations can if (true) label: let l8 = 0; ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. ~~~~~~~~~~~ !!! error TS1156: 'let' declarations can only be declared inside a block. while (false) label2: label3: label4: let l9 = 0; ~~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. ~~~~~~~~~~~ !!! error TS1156: 'let' declarations can only be declared inside a block. diff --git a/tests/baselines/reference/letDeclarations-scopes.errors.txt b/tests/baselines/reference/letDeclarations-scopes.errors.txt index fd14ca81b0909..74e72542591fe 100644 --- a/tests/baselines/reference/letDeclarations-scopes.errors.txt +++ b/tests/baselines/reference/letDeclarations-scopes.errors.txt @@ -1,8 +1,8 @@ letDeclarations-scopes.ts(27,1): error TS1101: 'with' statements are not allowed in strict mode. letDeclarations-scopes.ts(27,1): error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'. -letDeclarations-scopes.ts(43,5): error TS1344: 'A label is not allowed here. -letDeclarations-scopes.ts(48,21): error TS1344: 'A label is not allowed here. -letDeclarations-scopes.ts(119,5): error TS1344: 'A label is not allowed here. +letDeclarations-scopes.ts(43,5): error TS1344: A label is not allowed here. +letDeclarations-scopes.ts(48,21): error TS1344: A label is not allowed here. +letDeclarations-scopes.ts(119,5): error TS1344: A label is not allowed here. ==== letDeclarations-scopes.ts (5 errors) ==== @@ -54,14 +54,14 @@ letDeclarations-scopes.ts(119,5): error TS1344: 'A label is not allowed here. if (true) { label: let l = 0; ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. n = l; } while (false) { label2: label3: label4: let l = 0; ~~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. n = l; } @@ -134,7 +134,7 @@ letDeclarations-scopes.ts(119,5): error TS1344: 'A label is not allowed here. lable: let l2 = 0; ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. } // methods diff --git a/tests/baselines/reference/letDeclarations-validContexts.errors.txt b/tests/baselines/reference/letDeclarations-validContexts.errors.txt index 3c3aa84e21e35..5082c441f73a3 100644 --- a/tests/baselines/reference/letDeclarations-validContexts.errors.txt +++ b/tests/baselines/reference/letDeclarations-validContexts.errors.txt @@ -1,14 +1,14 @@ letDeclarations-validContexts.ts(18,1): error TS1101: 'with' statements are not allowed in strict mode. letDeclarations-validContexts.ts(18,1): error TS2410: The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'. -letDeclarations-validContexts.ts(31,5): error TS1344: 'A label is not allowed here. -letDeclarations-validContexts.ts(35,21): error TS1344: 'A label is not allowed here. -letDeclarations-validContexts.ts(64,9): error TS1344: 'A label is not allowed here. -letDeclarations-validContexts.ts(124,1): error TS1344: 'A label is not allowed here. -letDeclarations-validContexts.ts(126,5): error TS1344: 'A label is not allowed here. -letDeclarations-validContexts.ts(130,5): error TS1344: 'A label is not allowed here. -letDeclarations-validContexts.ts(132,9): error TS1344: 'A label is not allowed here. -letDeclarations-validContexts.ts(137,5): error TS1344: 'A label is not allowed here. -letDeclarations-validContexts.ts(139,9): error TS1344: 'A label is not allowed here. +letDeclarations-validContexts.ts(31,5): error TS1344: A label is not allowed here. +letDeclarations-validContexts.ts(35,21): error TS1344: A label is not allowed here. +letDeclarations-validContexts.ts(64,9): error TS1344: A label is not allowed here. +letDeclarations-validContexts.ts(124,1): error TS1344: A label is not allowed here. +letDeclarations-validContexts.ts(126,5): error TS1344: A label is not allowed here. +letDeclarations-validContexts.ts(130,5): error TS1344: A label is not allowed here. +letDeclarations-validContexts.ts(132,9): error TS1344: A label is not allowed here. +letDeclarations-validContexts.ts(137,5): error TS1344: A label is not allowed here. +letDeclarations-validContexts.ts(139,9): error TS1344: A label is not allowed here. ==== letDeclarations-validContexts.ts (11 errors) ==== @@ -48,13 +48,13 @@ letDeclarations-validContexts.ts(139,9): error TS1344: 'A label is not allowed h if (true) { label: let l8 = 0; ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. } while (false) { label2: label3: label4: let l9 = 0; ~~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. } // Try/catch/finally @@ -85,7 +85,7 @@ letDeclarations-validContexts.ts(139,9): error TS1344: 'A label is not allowed h let l16 = 0 label17: let l17 = 0; ~~~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. } } @@ -147,31 +147,31 @@ letDeclarations-validContexts.ts(139,9): error TS1344: 'A label is not allowed h // labels label: let l30 = 0; ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. { label2: let l31 = 0; ~~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. } function f3() { label: let l32 = 0; ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. { label2: let l33 = 0; ~~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. } } namespace m3 { label: let l34 = 0; ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. { label2: let l35 = 0; ~~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. } } \ No newline at end of file diff --git a/tests/baselines/reference/plainJSBinderErrors.errors.txt b/tests/baselines/reference/plainJSBinderErrors.errors.txt index 8eeeb92765ee6..779964a9d8625 100644 --- a/tests/baselines/reference/plainJSBinderErrors.errors.txt +++ b/tests/baselines/reference/plainJSBinderErrors.errors.txt @@ -11,7 +11,7 @@ plainJSBinderErrors.js(19,16): error TS1102: 'delete' cannot be called on an ide plainJSBinderErrors.js(22,15): error TS1210: Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of 'eval'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode. plainJSBinderErrors.js(23,15): error TS1210: Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of 'arguments'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode. plainJSBinderErrors.js(27,9): error TS1101: 'with' statements are not allowed in strict mode. -plainJSBinderErrors.js(33,13): error TS1344: 'A label is not allowed here. +plainJSBinderErrors.js(33,13): error TS1344: A label is not allowed here. plainJSBinderErrors.js(34,13): error TS1107: Jump target cannot cross function boundary. plainJSBinderErrors.js(39,7): error TS1215: Invalid use of 'eval'. Modules are automatically in strict mode. plainJSBinderErrors.js(40,7): error TS1215: Invalid use of 'arguments'. Modules are automatically in strict mode. @@ -80,7 +80,7 @@ plainJSBinderErrors.js(40,7): error TS1215: Invalid use of 'arguments'. Modules for(;;) { label: var x = 1 ~~~~~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. break label ~~~~~~~~~~~ !!! error TS1107: Jump target cannot cross function boundary. diff --git a/tests/baselines/reference/sourceMapValidationLabeled.errors.txt b/tests/baselines/reference/sourceMapValidationLabeled.errors.txt index f2ac83e9d3f27..5427432f9aafa 100644 --- a/tests/baselines/reference/sourceMapValidationLabeled.errors.txt +++ b/tests/baselines/reference/sourceMapValidationLabeled.errors.txt @@ -1,8 +1,8 @@ -sourceMapValidationLabeled.ts(1,1): error TS1344: 'A label is not allowed here. +sourceMapValidationLabeled.ts(1,1): error TS1344: A label is not allowed here. ==== sourceMapValidationLabeled.ts (1 errors) ==== x: ~ -!!! error TS1344: 'A label is not allowed here. +!!! error TS1344: A label is not allowed here. var b = 10; \ No newline at end of file