-
-
Notifications
You must be signed in to change notification settings - Fork 181
Open
Labels
Description
Because strings are iterable, TS supports destructuring them into individual characters:
const [a, b] = "test"; // a = "t" ; b = "e";
We currently do not support that in TSTL.
We should think about adding support for handling strings in restructuring assignments. At the very least, we should throw a diagnostic that this currently does not work.
Current behavior:
Epected behaviour a = "t", b = "e";
Discovered while fixing #1411
musjj