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. ~