Explorar o código

[typer] still check for `@:enum` on abstracts

Simon Krajewski %!s(int64=5) %!d(string=hai) anos
pai
achega
ca6370695c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/typing/typeloadModule.ml

+ 1 - 1
src/typing/typeloadModule.ml

@@ -330,7 +330,7 @@ let module_pass_1 ctx m tdecls loadp =
 				a_this = mk_mono();
 				a_read = None;
 				a_write = None;
-				a_enum = List.mem AbEnum d.d_flags;
+				a_enum = List.mem AbEnum d.d_flags || Meta.has Meta.Enum d.d_meta;
 			} in
 			decls := (TAbstractDecl a, decl) :: !decls;
 			match d.d_data with