72d74a82
by Francis De Brabandere at 2026-05-11T22:13:36+02:00
vbscript/tests: Cover cross-parse name redefinition semantics.
Native VBScript treats top-level Dim as silently re-declarable across
ParseScriptText calls, while Const and Class names cannot be reused
once taken, and Sub/Function only conflict with an existing Class of
the same name. Pin these rules with cross-parse tests covering each
declaration kind paired with each other kind.
Wine currently diverges on:
- any decl followed by Dim (errs 1041, native accepts);
- existing Class followed by Const/Sub/Function (silently allowed,
native errs 1041).
Marked as todo_wine pending the compile.c fix.