Explorar o código

fix __class__ generation inside of prototype

Justin Donaldson %!s(int64=10) %!d(string=hai) anos
pai
achega
7530781aca
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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