Browse Source

fixed EnumValue becomes Object

Nicolas Cannasse 13 years ago
parent
commit
d5770bdf16
2 changed files with 3 additions and 1 deletions
  1. 1 0
      doc/CHANGES.txt
  2. 2 1
      genas3.ml

+ 1 - 0
doc/CHANGES.txt

@@ -14,6 +14,7 @@
 	all : optimized Std.int(123) and Std.int(123.45)
 	js : remove $hxClasses generation if Type.resolveClass/resolveEnum not referenced
 	flash : bugfix for @:bitmap with 24-bits PNG (flash decode wrong colors)
+	as3 : fixed EnumValue becomes Object
 
 2012-04-14: 2.09
 	all : optimized const == const and const != const (with different const types)

+ 2 - 1
genas3.ml

@@ -54,6 +54,7 @@ let s_path ctx stat path p =
 		| "Dynamic" -> "Object"
 		| "Bool" -> "Boolean"
 		| "Enum" -> "Class"
+		| "EnumValue" -> "Object"
 		| _ -> name)
 	| (["flash"],"FlashXml__") ->
 		"Xml"
@@ -698,7 +699,7 @@ and gen_block ctx e =
 	newline ctx;
 	match e.eexpr with
 	| TBlock [] -> ()
-	| _ -> 
+	| _ ->
 		gen_expr ctx e;
 		newline ctx