May 22, 2026
5:18 p.m.
ClassDeclaration was only allowed at the top SourceElement level, so any prior statement on the same line caused err 1002 instead of either parsing successfully or, for a name collision, err 1041. Treat ClassDeclaration as a SimpleStatement matching the FunctionDecl pattern: it produces a STAT_CLASS statement that registers the class with the parser at compile time and errors out if the declaration is not at script global scope. -- v4: vbscript: Reject Sub/Function declarations inside global loops. vbscript/tests: Add tests for Class declaration scope. vbscript: Handle Class declaration scope in the parser. https://gitlab.winehq.org/wine/wine/-/merge_requests/10897