reflaxe
reflaxe copied to clipboard
SmartDCE doesn't add dependency for `Std.isOfType()` when compiling `foo is Bar`
SmartDCS apparently works by checking the types of the class fields.
This excludes using, or any other syntax implied imports.
I was able to trick the compiler by adding a silly field var aaa:sys.Http or var bbb:StringTools, this is possible do to haxes meta system of making classes and modules real instances of some type.
Of course some comment is critically needed, otherwise nobody will understand why this code is here.