2
0
Эх сурвалжийг харах

[macro] use vnull instead of asserting

closes #8024
Simon Krajewski 6 жил өмнө
parent
commit
88c77bbe2c

+ 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