Compiler error XS9114

This forum is meant for questions and discussions about the X# language and tools
Post Reply
User avatar
pemo18
Posts: 72
Joined: Fri Apr 27, 2018 10:38 am
Location: Germany

Compiler error XS9114

Post 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
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: Compiler error XS9114

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
pemo18
Posts: 72
Joined: Fri Apr 27, 2018 10:38 am
Location: Germany

Re: Compiler error XS9114

Post 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
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: Compiler error XS9114

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply