@@ -296,7 +296,6 @@ class SpodMacros {
for( m in c.meta.get() )
switch( m.name ) {
case ":id":
- if( i.key != null ) error("Multiple unique id", m.pos);
i.key = [];
for( p in m.params ) {
var id = makeIdent(p);
@@ -99,6 +99,9 @@ typedef SNekoSerialized = haxe.io.Bytes
@:native("Int")
extern class SFlags<T> {
+ public inline function init() : Void {
+ untyped __this__ = 0;
+ }
public inline function get( v : T ) : Bool {
return (cast this) & (1 << Type.enumIndex(v)) != 0;
}