Преглед на файлове

turn "field has no expression" generic error into display_error because it happens a lot in build macros

Simon Krajewski преди 11 години
родител
ревизия
ab7bc8d9ff
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      codegen.ml

+ 1 - 1
codegen.ml

@@ -358,7 +358,7 @@ let rec build_generic ctx c p tl =
 						begin match f.cf_kind with
 						begin match f.cf_kind with
 							| Method _ when not c.cl_interface && not c.cl_extern ->
 							| Method _ when not c.cl_interface && not c.cl_extern ->
 								display_error ctx (Printf.sprintf "Field %s has no expression (possible typing order issue)" f.cf_name) f.cf_pos;
 								display_error ctx (Printf.sprintf "Field %s has no expression (possible typing order issue)" f.cf_name) f.cf_pos;
-								error (Printf.sprintf "While building %s" (s_type_path cg.cl_path)) p;
+								display_error ctx (Printf.sprintf "While building %s" (s_type_path cg.cl_path)) p;
 							| _ ->
 							| _ ->
 								()
 								()
 						end
 						end