reflaxe icon indicating copy to clipboard operation
reflaxe copied to clipboard

SmartDCE doesn't add dependency for `Std.isOfType()` when compiling `foo is Bar`

Open fourst4r opened this issue 1 year ago • 1 comments

fourst4r avatar Mar 17 '24 02:03 fourst4r

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.

neimanpinchas avatar Dec 18 '24 13:12 neimanpinchas