escalier-lang / escalier-next

Improved type safety with tight TypeScript interop
https://escalier-lang.github.io/escalier-next/
MIT License
14 stars 0 forks source link

Don't allow redefinition of variables #338

Open kevinbarabash opened 3 months ago

kevinbarabash commented 3 months ago

The following test cases should be checked and any errors should be fixed:

// variables introduced with regular let
let foo = 5;
let foo = "hello";

// variables introduced by destructuring, including via the rest operator
let {x, y} = {x: 5, y: 10};
let {x, y} = {x: "hello", y: "world"};