From 28f2256cecc1742e765a2a757a69b83826e48cc6 Mon Sep 17 00:00:00 2001 From: Joseph Cloutier Date: Tue, 22 Oct 2024 00:54:33 -0400 Subject: [PATCH] Don't use operators introduced in Haxe 4.3. Not yet, anyway. --- src/echoes/macro/MacroTools.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/echoes/macro/MacroTools.hx b/src/echoes/macro/MacroTools.hx index 3e825a3..fee14fd 100644 --- a/src/echoes/macro/MacroTools.hx +++ b/src/echoes/macro/MacroTools.hx @@ -136,7 +136,8 @@ class MacroTools { final fieldChain:Null = printFieldChain(e); if(fieldChain != null) { try { - return followMono(fieldChain.getType()).toComplexType() ?? macro:Dynamic; + final result:ComplexType = followMono(fieldChain.getType()).toComplexType(); + return result != null ? result : macro:Dynamic; } catch(err:Exception) { } }