Re: [PATCH v2 0/2] MR10897: vbscript: Allow Class declarations inline after Dim/Sub separated by ':'.
May 15, 2026
3:18 p.m.
Jacek Caban (@jacek) commented about dlls/vbscript/compile.c:
return S_OK; }
+static HRESULT compile_class_statement(compile_ctx_t *ctx, class_statement_t *stat) +{ + if(ctx->func != &ctx->code->main_code) {
I think it won't catch cases when the class is declared in inner scope. Shouldn't something like `if x then class Test ...` cause an error as well? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10897#note_140037
35
Age (days ago)
35
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jacek Caban (@jacek)