#include does not work as expected

I tried something similar and it appeared to work.

What version of IDE, which OS, and have you got a complete minimal example with which we could reproduce the error exactly.