浏览代码

[lua] make sure to type_map through returned values for mr checks

Justin Donaldson 9 年之前
父节点
当前提交
f924432c1d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/generators/genlua.ml

+ 1 - 1
src/generators/genlua.ml

@@ -1802,7 +1802,7 @@ let transform_multireturn ctx = function
 					    if is_multireturn e2.etype then
 					    if is_multireturn e2.etype then
 						failwith "You cannot return a multireturn type from a haxe function"
 						failwith "You cannot return a multireturn type from a haxe function"
 					    else
 					    else
-						e
+						Type.map_expr loop e;
 					(*
 					(*
 						if we found usage of local var we previously marked with @:multiReturn as a value itself,
 						if we found usage of local var we previously marked with @:multiReturn as a value itself,
 						remove the @:multiReturn meta and add "box me" meta so it'll be boxed on var initialization
 						remove the @:multiReturn meta and add "box me" meta so it'll be boxed on var initialization