Explorar o código

[analyzer] error on unbound variables

Dan Korostelev %!s(int64=10) %!d(string=hai) anos
pai
achega
98418b505d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      analyzer.ml

+ 1 - 1
analyzer.ml

@@ -695,7 +695,7 @@ module Ssa = struct
 			IntMap.find v.v_id ctx.cur_data.nd_var_map
 		with Not_found ->
 			if not (has_meta Meta.Unbound v.v_meta) then
-				ctx.com.warning (Printf.sprintf "Unbound variable %s" v.v_name) p;
+				error (Printf.sprintf "Unbound variable %s" v.v_name) p;
 			v
 
 	let close_join_node ctx node p =