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
@:generic
class Main<T> {
static function main() {
new Main<String>();
}
function new() { }
macro static function test() {
return macro null;
}
}
This currently errors with src/Main.hx:3: lines 3-5 : A generic class can't have static fields. For one the error position is off, but I don't really see why we have to disallow macros on @:generic classes in the first place.
This likely means using load_type_def instead of load_instance in load_macro, but that strikes me as the better approach anyway as we don't actually need a TInst there.
The text was updated successfully, but these errors were encountered:
This currently errors with
src/Main.hx:3: lines 3-5 : A generic class can't have static fields
. For one the error position is off, but I don't really see why we have to disallow macros on@:generic
classes in the first place.This likely means using
load_type_def
instead ofload_instance
inload_macro
, but that strikes me as the better approach anyway as we don't actually need a TInst there.The text was updated successfully, but these errors were encountered: