Compiler bug (regression) with shared identifiers

Feedback Case Number: 62398

I’m still developing mainly in the Real Studio IDE. Now I’m forced to compile a complex project in Xojo, and ran into a compiler error. The current IDE’s compiler is not able to look up local identifiers, but instead looks them up in the wrong context, in several ways.

Basically, if there is both a shared and a non-shared identifier in a class, referencing the shared identifier from a shared, local, context (e.g. a shared method) find the non-shared identifier, which is wrong because that non-shared ident is not accessible anyway.

Furthermore, it’s not possible any more to refer to the local shared identifier by qualifying it with the own class name, even though the same is possible if it’s referencing a different class.

Demo project is attached to the report.

1 Like