Browse Source

[Swf9] build_class fix

Simon Krajewski 12 years ago
parent
commit
11d37bcfd4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      genswf.ml

+ 1 - 1
genswf.ml

@@ -146,7 +146,7 @@ let build_class com c file =
 			| HMPath _ -> i
 			| HMPath _ -> i
 			| _ -> assert false
 			| _ -> assert false
 		) in
 		) in
-		HImplements (make_tpath i)
+		if c.hlc_interface then HExtends (make_tpath i) else HImplements (make_tpath i)
 	) (Array.to_list c.hlc_implements) @ flags in
 	) (Array.to_list c.hlc_implements) @ flags in
 	let flags = if c.hlc_sealed || Common.defined com Define.FlashStrict then flags else HImplements (make_tpath (HMPath ([],"Dynamic"))) :: flags in
 	let flags = if c.hlc_sealed || Common.defined com Define.FlashStrict then flags else HImplements (make_tpath (HMPath ([],"Dynamic"))) :: flags in
   (* make fields *)
   (* make fields *)