Răsfoiți Sursa

[hxb] don't abort on unbound type parameters

Rudy Ges 2 ani în urmă
părinte
comite
f2979aa992
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  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;