Explorar o código

[hxb] don't abort on unbound type parameters

Rudy Ges %!s(int64=2) %!d(string=hai) anos
pai
achega
f2979aa992
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/compiler/hxb/hxbWriter.ml

+ 3 - 1
src/compiler/hxb/hxbWriter.ml

@@ -331,7 +331,9 @@ class ['a] hxb_writer
 				chunk#write_byte 6;
 				chunk#write_uleb128 i
 			with Not_found ->
-				error ("Unbound type parameter " ^ (s_type_path c.cl_path))
+				(* error ("Unbound type parameter " ^ (s_type_path c.cl_path)) *)
+				Printf.eprintf "%s Unbound type parameter %s\n" todo_error (s_type_path c.cl_path);
+				chunk#write_byte 0
 			end
 		| TInst(c,[]) ->
 			chunk#write_byte 10;