Przeglądaj źródła

fixed : extending flash.* extern class.

Nicolas Cannasse 19 lat temu
rodzic
commit
1e620b1196
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      genswf8.ml

+ 3 - 2
genswf8.ml

@@ -1128,11 +1128,12 @@ let gen_type_def ctx t =
 			push ctx [VReg 0; VStr "__super__"; VNull];
 			setvar ctx VarObj
 		| Some (csuper,_) ->
+			let path = (match csuper.cl_path with (["flash"],x) when csuper.cl_extern -> ([],x) | p -> p) in
 			push ctx [VReg 0; VStr "__super__"];
-			gen_path ctx csuper.cl_path csuper.cl_extern;
+			gen_path ctx path csuper.cl_extern;
 			setvar ctx VarObj;
 			push ctx [VReg 0];
-			gen_path ctx csuper.cl_path csuper.cl_extern;
+			gen_path ctx path csuper.cl_extern;
 			write ctx AExtends;
 		);
 		(match c.cl_implements with