浏览代码

fix __class__ generation inside of prototype

Justin Donaldson 10 年之前
父节点
当前提交
7530781aca
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      genlua.ml

+ 1 - 1
genlua.ml

@@ -1221,7 +1221,7 @@ let generate_class ctx c =
 		List.iter (fun f -> if can_gen_class_field ctx f then gen_class_field ctx c f) c.cl_ordered_fields;
 		if (has_class ctx c) then begin
 			newprop ctx;
-			print ctx "__class__ =  %s" p;
+			print ctx "__class__ =  %s," p;
 		end;
 
 		if has_property_reflection then begin