xsharp.eu • Compiler error XS9114
Page 1 of 1

Compiler error XS9114

Posted: Tue Nov 21, 2023 4:02 pm
by pemo18
Hello X# Team,

After switching temporarily from X# 2.14 to 2.18 I'll got a lot of XS9114 compiler errors because our code uses : instead of . to access static members at many occasions.

Is there a compiler switch to avoid this error? If not, I would like to suggest adding one for the next releases. This would be very helpful.

Kind regards,

Peter

Re: Compiler error XS9114

Posted: Tue Nov 21, 2023 4:46 pm
by robert
Peter.

Yes, there is a compiler switch /allowdot (it is also on the options dialog in VS).
See https://www.xsharp.eu/help/opt-allowdot.html

Robert

Re: Compiler error XS9114

Posted: Tue Nov 21, 2023 8:34 pm
by pemo18
Hello Robert,

What I was looking for was the opposite. A switch that allows the use of the : colon for static methods.

I am talking about compiler error XS9114: Can't access the static member ... with the COLON operator. This must be new.

Having a switch that would allow using the colon with X# 2.18 would be, as I said, very helpful.

I would open an issue but I am not sure if it will be taken seriously this time.

Kind regards,

Peter

Re: Compiler error XS9114

Posted: Tue Nov 21, 2023 10:18 pm
by robert
Peter,
pemo18 wrote: Tue Nov 21, 2023 8:34 pm I would open an issue but I am not sure if it will be taken seriously this time.
What makes you say that?

Robert