Selaa lähdekoodia

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

Justin Donaldson 9 vuotta sitten
vanhempi
commit
f924432c1d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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
 						failwith "You cannot return a multireturn type from a haxe function"
 					    else
-						e
+						Type.map_expr loop e;
 					(*
 						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