소스 검색

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
 							| 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;
-								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