Compiler Directive does not works inside Protocol

Hi,

We are facing problem when compiling our swift code with Fire 11.0.0.2671, where the compiler directive is not working correctly inside the Protocol.

Please find the 2 simplified version of projects, which Success.zip contains the compiler directive #if ANDROID on the Protocol level and compile successfully, while Failed.zip contains the compiler directive inside the Protocol, and it failed to compile.

Regards,
Cheng

Failed.zip (34.8 KB)
Success.zip (34.0 KB)

Logged as bugs://E25377.

That’s a strange one indeed. definitely a bug.

bugs://E25377 was closed as fixed.