May 16, 2026
8:01 a.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. -- v3: vbscript: Allow Class declarations inline after Dim/Sub separated by ':'. vbscript/tests: Add tests for Class declarations inline after Dim/Sub. https://gitlab.winehq.org/wine/wine/-/merge_requests/10897