2015-02-10 22:36:24 +01:00
|
|
|
//// [letInLetOrConstDeclarations.ts]
|
|
|
|
{
|
|
|
|
let let = 1; // should error
|
|
|
|
for (let let in []) { } // should error
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const let = 1; // should error
|
|
|
|
}
|
|
|
|
{
|
|
|
|
function let() { // should be ok
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [letInLetOrConstDeclarations.js]
|
|
|
|
{
|
|
|
|
let let = 1; // should error
|
2015-03-26 21:46:35 +01:00
|
|
|
for (let let in []) { } // should error
|
2015-02-10 22:36:24 +01:00
|
|
|
}
|
|
|
|
{
|
|
|
|
const let = 1; // should error
|
|
|
|
}
|
|
|
|
{
|
|
|
|
function let() {
|
|
|
|
}
|
|
|
|
}
|