瀏覽代碼

[hxb] don't abort on unbound type parameters

Rudy Ges 2 年之前
父節點
當前提交
f2979aa992
共有 1 個文件被更改,包括 3 次插入1 次删除
  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;