-
-
Notifications
You must be signed in to change notification settings - Fork 694
Closed
Description
Hej,
Idk if I've understood well the new local static var feature but in this example it seems not working in macro context : https://try.haxe.org/#bf1DB874
null twice whereas with the uncommented line null first time, then 5
class Test {
static function main() {
Macro.foo(5);
Macro.foo(2);
}
}
class Macro {
//static var i:Int;
public macro static function foo(_i:Int) {
static var i:Int;
trace(i);
i = _i;
return macro null;
}
}
```Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels