numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
203 stars 117 forks source link

Duplicate variable names aren't picked up in destructuring #761

Closed christianp closed 2 years ago

christianp commented 3 years ago

Define a pair of variables a,b. Also define a and b separately. This should produce a "variable already defined" warning, but it doesn't.

christianp commented 2 years ago

It seems that it's only the editor that checks for duplicate names, and this bug is now fixed there. Should the runtime also check for duplicates?