浏览代码

classes implementing ArrayAccess<T> are now dynamic

Nicolas Cannasse 15 年之前
父节点
当前提交
b9c2dadc83
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      doc/CHANGES.txt
  2. 1 1
      genswf9.ml

+ 1 - 0
doc/CHANGES.txt

@@ -2,6 +2,7 @@
 	neko : change serializer to be able to handle instances of basic classes from other modules
 	neko : change serializer to be able to handle instances of basic classes from other modules
 	js : add Document.createTextNode
 	js : add Document.createTextNode
 	all : bugfix with inline when modifying var with same name as one of current local
 	all : bugfix with inline when modifying var with same name as one of current local
+	flash9 : classes implementing ArrayAccess<T> are now dynamic (including TypedDictionary)
 
 
 2010-01-09: 2.05
 2010-01-09: 2.05
 	js : added js.Scroll
 	js : added js.Scroll

+ 1 - 1
genswf9.ml

@@ -1754,7 +1754,7 @@ let generate_class ctx c =
 	let st_field_count = ref 0 in
 	let st_field_count = ref 0 in
 	let st_meth_count = ref 0 in
 	let st_meth_count = ref 0 in
 	let rec is_dynamic c =
 	let rec is_dynamic c =
-		if c.cl_dynamic <> None then true
+		if c.cl_dynamic <> None || c.cl_array_access <> None then true
 		else match c.cl_super with
 		else match c.cl_super with
 		| None -> false
 		| None -> false
 		| Some (c,_) -> is_dynamic c
 		| Some (c,_) -> is_dynamic c