TypeScript/tests/baselines/reference/downlevelLetConst18.errors.txt

60 lines
3.3 KiB
Plaintext
Raw Normal View History

2015-02-28 02:24:24 +01:00
tests/cases/compiler/downlevelLetConst18.ts(3,1): error TS4091: Loop contains block-scoped variable 'x' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher.
2015-02-27 01:53:25 +01:00
tests/cases/compiler/downlevelLetConst18.ts(4,14): error TS2393: Duplicate function implementation.
2015-02-28 02:24:24 +01:00
tests/cases/compiler/downlevelLetConst18.ts(7,1): error TS4091: Loop contains block-scoped variable 'x' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher.
2015-02-27 01:53:25 +01:00
tests/cases/compiler/downlevelLetConst18.ts(8,14): error TS2393: Duplicate function implementation.
2015-02-28 02:24:24 +01:00
tests/cases/compiler/downlevelLetConst18.ts(11,1): error TS4091: Loop contains block-scoped variable 'x' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher.
tests/cases/compiler/downlevelLetConst18.ts(15,1): error TS4091: Loop contains block-scoped variable 'x' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher.
tests/cases/compiler/downlevelLetConst18.ts(19,1): error TS4091: Loop contains block-scoped variable 'x' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher.
tests/cases/compiler/downlevelLetConst18.ts(23,1): error TS4091: Loop contains block-scoped variable 'x' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher.
tests/cases/compiler/downlevelLetConst18.ts(27,1): error TS4091: Loop contains block-scoped variable 'x' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher.
2015-02-27 01:53:25 +01:00
==== tests/cases/compiler/downlevelLetConst18.ts (9 errors) ====
'use strict'
for (let x; ;) {
~~~
2015-02-28 02:24:24 +01:00
!!! error TS4091: Loop contains block-scoped variable 'x' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher.
2015-02-27 01:53:25 +01:00
function foo() { x };
~~~
!!! error TS2393: Duplicate function implementation.
}
for (let x; ;) {
~~~
2015-02-28 02:24:24 +01:00
!!! error TS4091: Loop contains block-scoped variable 'x' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher.
2015-02-27 01:53:25 +01:00
function foo() { x };
~~~
!!! error TS2393: Duplicate function implementation.
}
for (let x; ;) {
~~~
2015-02-28 02:24:24 +01:00
!!! error TS4091: Loop contains block-scoped variable 'x' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher.
2015-02-27 01:53:25 +01:00
(() => { x })();
}
for (const x = 1; ;) {
~~~
2015-02-28 02:24:24 +01:00
!!! error TS4091: Loop contains block-scoped variable 'x' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher.
2015-02-27 01:53:25 +01:00
(() => { x })();
}
for (let x; ;) {
~~~
2015-02-28 02:24:24 +01:00
!!! error TS4091: Loop contains block-scoped variable 'x' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher.
2015-02-27 01:53:25 +01:00
({ foo() { x }})
}
for (let x; ;) {
~~~
2015-02-28 02:24:24 +01:00
!!! error TS4091: Loop contains block-scoped variable 'x' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher.
2015-02-27 01:53:25 +01:00
({ get foo() { return x } })
}
for (let x; ;) {
~~~
2015-02-28 02:24:24 +01:00
!!! error TS4091: Loop contains block-scoped variable 'x' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher.
2015-02-27 01:53:25 +01:00
({ set foo(v) { x } })
}