From 15896656523acd9329f0baf44fc295286158d451 Mon Sep 17 00:00:00 2001 From: Juraj Kirchheim Date: Fri, 26 Jun 2020 15:24:00 +0200 Subject: [PATCH] Fix haxe 3. --- src/tink/macro/Sisyphus.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tink/macro/Sisyphus.hx b/src/tink/macro/Sisyphus.hx index 01fa02c..277424e 100644 --- a/src/tink/macro/Sisyphus.hx +++ b/src/tink/macro/Sisyphus.hx @@ -96,7 +96,7 @@ class Sisyphus { case TFun(args, ret): TFunction( [for (a in args) { - var t = TNamed(a.name, toComplexType(a.t)); + var t = #if haxe4 TNamed(a.name, #else ( #end toComplexType(a.t)); if (a.opt) TOptional(t) else t; }], toComplexType(ret)