浏览代码

add non locals to function

frabbit 11 年之前
父节点
当前提交
30c317f511
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      genpy.ml

+ 1 - 0
genpy.ml

@@ -304,6 +304,7 @@ module Transformer = struct
 			tf_args = tf.tf_args;
 			tf_type = tf.tf_type;
 		})) ae.a_expr.etype p in
+		let fn = add_non_locals_to_func fn in
 		if is_value then begin
 			let new_name = ae.a_next_id() in
 			let new_var = alloc_var new_name tf.tf_type in