Browse Source

Lua : fix hxClasses usage in enums

Justin Donaldson 10 năm trước cách đây
mục cha
commit
bbd6e838a4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      genlua.ml

+ 1 - 1
genlua.ml

@@ -1255,7 +1255,7 @@ let generate_enum ctx e =
 
 	if has_feature ctx "Type.resolveEnum" then begin
 	    newline ctx;
-	    print ctx "_hxClasses[\"%s\"] = " (dot_path e.e_path);
+	    print ctx "_hxClasses[\"%s\"] = %s" (dot_path e.e_path) p; semicolon ctx; newline ctx;
 	    print ctx "%s = _hxClasses[\"%s\"];" p (dot_path e.e_path);
 	end else begin
 	    print ctx "%s = {" p;