Error XS026 Cannot implicitly convert type .... to to 'Vulcan.__Usual'.
Posted: Tue Oct 17, 2017 10:06 pm
I am translating a Vulcan program handling WCF to X#, which was originally translated from C#.
This is part of the working Vulcan code:
PRIVATE servicechannel AS USUAL
....
SELF:servicechannel := channel:CreateChannel()
RETURN SELF:servicechannel
On the SELF:servicechannel := channel:CreateChannel() line I get
Error XS0266 Cannot implicitly convert type 'WCFInterfaces.IWebTransferService' to 'Vulcan.__Usual'.
The original C# code looks as follows:
private T servicechannel;
servicechannel = channel.CreateChannel();
return servicechannel;
XS0026 says:
Keyword 'SELF' is not valid in a static property, static method, or static field initializer
but I am not sure what I should do with this. I seem to remember Chris has replied me earlier about some issue with 'STATIC' but I can't find it back.
Dick
This is part of the working Vulcan code:
PRIVATE servicechannel AS USUAL
....
SELF:servicechannel := channel:CreateChannel()
RETURN SELF:servicechannel
On the SELF:servicechannel := channel:CreateChannel() line I get
Error XS0266 Cannot implicitly convert type 'WCFInterfaces.IWebTransferService' to 'Vulcan.__Usual'.
The original C# code looks as follows:
private T servicechannel;
servicechannel = channel.CreateChannel();
return servicechannel;
XS0026 says:
Keyword 'SELF' is not valid in a static property, static method, or static field initializer
but I am not sure what I should do with this. I seem to remember Chris has replied me earlier about some issue with 'STATIC' but I can't find it back.
Dick