May 22, 2026
5:32 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. -- v5: vbscript: Handle declaration scope in the parser. vbscript/tests: Add tests for declaration scope handling. https://gitlab.winehq.org/wine/wine/-/merge_requests/10897