You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This one confused me, but there's no regression here:
Your example is invalid because you do in fact have the static function main on your @:generic class.
You have to #if !macro your macro function, the error you're getting actually occurs in macro context because there the macro is not really considered a macro (don't ask).
This is a regression from a previous fix: #3766
Example:
This fails to compile with the error "A generic class can't have static fields"
Macro static methods are an exception, and are allowed in a generic class https://github.com/HaxeFoundation/haxe/blob/3.2.1/codegen.ml#L418
The text was updated successfully, but these errors were encountered: