You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To fix the following error and corresponding errors for other language versions:
classC{voidM(){inti=default;// error CS8107: Feature 'default literal' is not available in C# 7.0. Please use language version 7.1 or greater.}}
It should replace the default literal with another literal, a default expression or a special member access, abiding by the same design as #30360 (comment)
The easiest implementation of this would be to add the new supported error messages to the existing code fix, implemented in #30430. That can only be done after this compiler bug is fixed: #30384.
For future reference, this was partially implemented (just for generating default expressions) in #30359.
The text was updated successfully, but these errors were encountered:
To fix the following error and corresponding errors for other language versions:
It should replace the default literal with another literal, a default expression or a special member access, abiding by the same design as #30360 (comment)
The easiest implementation of this would be to add the new supported error messages to the existing code fix, implemented in #30430. That can only be done after this compiler bug is fixed: #30384.
For future reference, this was partially implemented (just for generating default expressions) in #30359.
The text was updated successfully, but these errors were encountered: