From 170e0aa938b92718728c004c8f32ab7dd0617d22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Fri, 20 Dec 2024 11:06:29 +0100 Subject: [PATCH] update baselines --- .../reference/invalidLetInForOfAndForIn_ES5.errors.txt | 5 ++++- .../reference/invalidLetInForOfAndForIn_ES6.errors.txt | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/baselines/reference/invalidLetInForOfAndForIn_ES5.errors.txt b/tests/baselines/reference/invalidLetInForOfAndForIn_ES5.errors.txt index 2445ba63c7631..d6dc2b24611fa 100644 --- a/tests/baselines/reference/invalidLetInForOfAndForIn_ES5.errors.txt +++ b/tests/baselines/reference/invalidLetInForOfAndForIn_ES5.errors.txt @@ -2,11 +2,12 @@ invalidLetInForOfAndForIn_ES5.ts(5,13): error TS1005: ',' expected. invalidLetInForOfAndForIn_ES5.ts(5,14): error TS1181: Array element destructuring pattern expected. invalidLetInForOfAndForIn_ES5.ts(5,14): error TS2695: Left side of comma operator is unused and has no side effects. invalidLetInForOfAndForIn_ES5.ts(5,14): error TS2695: Left side of comma operator is unused and has no side effects. +invalidLetInForOfAndForIn_ES5.ts(5,14): error TS2872: This kind of expression is always truthy. invalidLetInForOfAndForIn_ES5.ts(5,19): error TS1005: ';' expected. invalidLetInForOfAndForIn_ES5.ts(5,20): error TS1128: Declaration or statement expected. -==== invalidLetInForOfAndForIn_ES5.ts (6 errors) ==== +==== invalidLetInForOfAndForIn_ES5.ts (7 errors) ==== // This should be an error // More details: http://www.ecma-international.org/ecma-262/6.0/#sec-iteration-statements @@ -20,6 +21,8 @@ invalidLetInForOfAndForIn_ES5.ts(5,20): error TS1128: Declaration or statement e !!! error TS2695: Left side of comma operator is unused and has no side effects. ~~~ !!! error TS2695: Left side of comma operator is unused and has no side effects. + ~~~~~ +!!! error TS2872: This kind of expression is always truthy. ~ !!! error TS1005: ';' expected. ~ diff --git a/tests/baselines/reference/invalidLetInForOfAndForIn_ES6.errors.txt b/tests/baselines/reference/invalidLetInForOfAndForIn_ES6.errors.txt index cf35e02b1661e..7730b8e3b10fb 100644 --- a/tests/baselines/reference/invalidLetInForOfAndForIn_ES6.errors.txt +++ b/tests/baselines/reference/invalidLetInForOfAndForIn_ES6.errors.txt @@ -2,11 +2,12 @@ invalidLetInForOfAndForIn_ES6.ts(5,13): error TS1005: ',' expected. invalidLetInForOfAndForIn_ES6.ts(5,14): error TS1181: Array element destructuring pattern expected. invalidLetInForOfAndForIn_ES6.ts(5,14): error TS2695: Left side of comma operator is unused and has no side effects. invalidLetInForOfAndForIn_ES6.ts(5,14): error TS2695: Left side of comma operator is unused and has no side effects. +invalidLetInForOfAndForIn_ES6.ts(5,14): error TS2872: This kind of expression is always truthy. invalidLetInForOfAndForIn_ES6.ts(5,19): error TS1005: ';' expected. invalidLetInForOfAndForIn_ES6.ts(5,20): error TS1128: Declaration or statement expected. -==== invalidLetInForOfAndForIn_ES6.ts (6 errors) ==== +==== invalidLetInForOfAndForIn_ES6.ts (7 errors) ==== // This should be an error // More details: http://www.ecma-international.org/ecma-262/6.0/#sec-iteration-statements @@ -20,6 +21,8 @@ invalidLetInForOfAndForIn_ES6.ts(5,20): error TS1128: Declaration or statement e !!! error TS2695: Left side of comma operator is unused and has no side effects. ~~~ !!! error TS2695: Left side of comma operator is unused and has no side effects. + ~~~~~ +!!! error TS2872: This kind of expression is always truthy. ~ !!! error TS1005: ';' expected. ~