neo-devpack-dotnet icon indicating copy to clipboard operation
neo-devpack-dotnet copied to clipboard

property.SetMethod is null, compilation failed

Open chenzhitong opened this issue 2 years ago • 4 comments

Assigning a value to a property that does not have a Set method in the constructor method will fail to compile

This code compiles and executes fine in a c# console application. image

But in the smart contract, it doesn't compile successfully image

image

chenzhitong avatar Mar 05 '24 10:03 chenzhitong

@shargon

Jim8y avatar Mar 05 '24 10:03 Jim8y

We need to autogenerate the set method 🤔

shargon avatar Mar 05 '24 10:03 shargon

can not reproduce your problem. Please check out my new pr.

Jim8y avatar Mar 06 '24 12:03 Jim8y

can not reproduce your problem. Please check out my new pr. image Error when there is no set method

chenzhitong avatar Mar 07 '24 02:03 chenzhitong