b9ff78fd
by Francis De Brabandere at 2026-06-11T16:08:06+02:00
vbscript: Allow Dim to shadow a global const from a previous compile unit.
Native VBScript accepts a global Dim whose name matches a const from an
earlier compile unit and creates a fresh variable that later name
lookups resolve to, so the name becomes readable and assignable, while
code in the defining compile unit keeps using the inlined const value.
Wine skipped the variable creation, so the name kept resolving to the
const and assignments failed with an illegal assignment error.