From 6c77566fea0e04737f79c537f666b2d22c07c831 Mon Sep 17 00:00:00 2001 From: NeeEoo Date: Thu, 25 Apr 2024 12:36:11 +0200 Subject: [PATCH] Actually --- tests/src/Util.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/Util.hx b/tests/src/Util.hx index 13398bd..52e314a 100644 --- a/tests/src/Util.hx +++ b/tests/src/Util.hx @@ -7,11 +7,11 @@ using StringTools; class Util { static inline function isNull(a:Dynamic):Bool { - return Type.typeof(a) == TNull; + return Type.enumEq(Type.typeof(a), TNull); } static inline function isFunction(a:Dynamic):Bool { - return Type.typeof(a) == TFunction; + return Type.enumEq(Type.typeof(a), TFunction); } // TODO: check this for bugs