Browse Source

[macro] use vnull instead of asserting

closes #8024
Simon Krajewski 6 năm trước cách đây
mục cha
commit
88c77bbe2c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/typing/macroContext.ml

+ 1 - 1
src/typing/macroContext.ml

@@ -677,7 +677,7 @@ let type_macro ctx mode cpath f (el:Ast.expr list) p =
 				| None -> Interp.vnull
 				end
 			| MAOther -> match Interp.eval_expr ictx et with
-				| None -> assert false
+				| None -> Interp.vnull
 				| Some v -> v
 		) eargs elt
 	in