We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public class Class1 { const decimal a = 1.0m; static Class1() { //Do something } }
public class Class1 { private const decimal a = 1.0m; static Class1() { a = 1.0m; } }
If the output fails to re-compile, provide the compiler error message.
CS0131: The left-hand side of an assignment must be a variable, property or indexer
The text was updated successfully, but these errors were encountered:
ea1cea9
Fix icsharpcode#2547: decimal const not removed from static constructor.
36e52a1
No branches or pull requests
Input code
Erroneous output
If the output fails to re-compile, provide the compiler error message.
Details
The text was updated successfully, but these errors were encountered: