Explorar o código

[macro] use vnull instead of asserting

closes #8024
Simon Krajewski %!s(int64=6) %!d(string=hai) anos
pai
achega
88c77bbe2c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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