16 lines
304 B
TypeScript
16 lines
304 B
TypeScript
//// [letInLetDeclarations_ES5.ts]
|
|
|
|
// All use of let in const declaration should be an error
|
|
let x = 50, let = 5;
|
|
|
|
{
|
|
let x = 10, let = 20;
|
|
}
|
|
|
|
//// [letInLetDeclarations_ES5.js]
|
|
// All use of let in const declaration should be an error
|
|
var x = 50, let = 5;
|
|
{
|
|
var x_1 = 10, let_1 = 20;
|
|
}
|