From 051793287507a9989e172e3bc88c9daf85aafcaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Charmet?= Date: Wed, 20 Oct 2021 11:47:06 +0200 Subject: [PATCH] [python] fixes #10440 --- std/python/Boot.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/python/Boot.hx b/std/python/Boot.hx index 50027b08a0d..7b96b6a2a80 100644 --- a/std/python/Boot.hx +++ b/std/python/Boot.hx @@ -223,7 +223,7 @@ class Boot { } static inline function isMetaType(v:Dynamic, t:Dynamic):Bool { - return python.Syntax.binop(v, "==", t); + return Syntax.binop(Syntax.binop(Syntax.call(UBuiltins.type, [v]), "==", UBuiltins.type), "and", Syntax.binop(v, "==", t)); } @:analyzer(no_local_dce)