Răsfoiți Sursa

Workaround for unit test failures (#9399)

* workaround for unit test failures

* change to explicit typing
George Corney 5 ani în urmă
părinte
comite
8d04929543
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      std/haxe/macro/Printer.hx

+ 1 - 1
std/haxe/macro/Printer.hx

@@ -131,7 +131,7 @@ class Printer {
 				(wrapArgumentsInParentheses ? '($argStr)' : argStr) + " -> " + (switch ret {
 					// wrap return type in parentheses if it's also a function
 					case TFunction(_): '(${printComplexType(ret)})';
-					default: printComplexType(ret);
+					default: (printComplexType(ret): String);
 				});
 			case TAnonymous(fields): "{ " + [for (f in fields) printField(f) + "; "].join("") + "}";
 			case TParent(ct): "(" + printComplexType(ct) + ")";