2014-10-21 02:38:50 +02:00
|
|
|
tests/cases/compiler/file1.ts(2,7): error TS2451: Cannot redeclare block-scoped variable 'var1'.
|
|
|
|
tests/cases/compiler/file2.ts(1,5): error TS2451: Cannot redeclare block-scoped variable 'var1'.
|
2014-10-14 23:51:28 +02:00
|
|
|
|
|
|
|
|
2014-10-15 00:18:44 +02:00
|
|
|
==== tests/cases/compiler/file1.ts (1 errors) ====
|
2014-10-14 23:51:28 +02:00
|
|
|
|
|
|
|
const var1 = 0;
|
2014-10-15 00:18:44 +02:00
|
|
|
~~~~
|
2014-10-21 02:38:50 +02:00
|
|
|
!!! error TS2451: Cannot redeclare block-scoped variable 'var1'.
|
2014-10-14 23:51:28 +02:00
|
|
|
|
|
|
|
==== tests/cases/compiler/file2.ts (1 errors) ====
|
|
|
|
let var1 = 0;
|
|
|
|
~~~~
|
2014-10-21 02:38:50 +02:00
|
|
|
!!! error TS2451: Cannot redeclare block-scoped variable 'var1'.
|