diff --git a/genpy.ml b/genpy.ml index fb6c66f96f3..e9a98ef1e48 100644 --- a/genpy.ml +++ b/genpy.ml @@ -1612,7 +1612,7 @@ module Printer = struct if has_feature pctx "haxe.Log.trace" then begin "haxe_Log.trace(" ^ (print_expr pctx e) ^ "," ^ (print_expr pctx infos) ^ ")" end else begin match e.eexpr with - | TConst(TString(s)) -> "print(\"" ^ s ^ "\")" + | TConst(TString(s)) -> "print(" ^ (print_expr pctx e) ^ ")" | _ -> "print(str(" ^ (print_expr pctx e) ^ "))" end | TField(e1,((FAnon {cf_name = (("join" | "push" | "map" | "filter") as s)}) | FDynamic (("join" | "push" | "map" | "filter") as s))), [x] ->