Fix existing tests baseline with modified error message

This commit is contained in:
Sheetal Nandi 2016-04-11 14:36:49 -07:00
parent 4b0cb640c3
commit 163615b606
2 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
tests/cases/compiler/downlevelLetConst18.ts(5,14): error TS1250: In ES5 or lower, function declarations are not allowed in block scope in strict mode.
tests/cases/compiler/downlevelLetConst18.ts(9,14): error TS1250: In ES5 or lower, function declarations are not allowed in block scope in strict mode.
tests/cases/compiler/downlevelLetConst18.ts(5,14): error TS1250: Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'.
tests/cases/compiler/downlevelLetConst18.ts(9,14): error TS1250: Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'.
==== tests/cases/compiler/downlevelLetConst18.ts (2 errors) ====
@ -9,13 +9,13 @@ tests/cases/compiler/downlevelLetConst18.ts(9,14): error TS1250: In ES5 or lower
for (let x; ;) {
function foo() { x };
~~~
!!! error TS1250: In ES5 or lower, function declarations are not allowed in block scope in strict mode.
!!! error TS1250: Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'.
}
for (let x; ;) {
function foo1() { x };
~~~~
!!! error TS1250: In ES5 or lower, function declarations are not allowed in block scope in strict mode.
!!! error TS1250: Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'.
}
for (let x; ;) {

View File

@ -1,4 +1,4 @@
tests/cases/compiler/downlevelLetConst19.ts(9,14): error TS1250: In ES5 or lower, function declarations are not allowed in block scope in strict mode.
tests/cases/compiler/downlevelLetConst19.ts(9,14): error TS1250: Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'.
==== tests/cases/compiler/downlevelLetConst19.ts (1 errors) ====
@ -12,7 +12,7 @@ tests/cases/compiler/downlevelLetConst19.ts(9,14): error TS1250: In ES5 or lower
function b() {
~
!!! error TS1250: In ES5 or lower, function declarations are not allowed in block scope in strict mode.
!!! error TS1250: Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'.
{
let x;
use(x);