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
Copy file name to clipboardExpand all lines: src/Core/CodeAnalysis/DiagnosticDescriptors.cs
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -369,6 +369,7 @@ internal static class DiagnosticDescriptors
369
369
internalstaticreadonlyDiagnosticDescriptorAmbiguousSourceType=new("GS0496",DiagnosticSeverity.Error,"Type '{0}' is ambiguous between two or more imported packages that each declare a same-named type; qualify the reference with its package name to disambiguate (issue #2455).");
370
370
internalstaticreadonlyDiagnosticDescriptorAsyncIteratorFunctionLiteralNotSupported=new("GS0497",DiagnosticSeverity.Error,"Async iterator function literals returning '{0}' are not supported; declare a named async iterator function and reference it instead.");
371
371
internalstaticreadonlyDiagnosticDescriptorGotoIntoExceptionHandler=new("GS0498",DiagnosticSeverity.Error,"A goto cannot enter a catch or finally handler at label '{0}'.");
372
+
internalstaticreadonlyDiagnosticDescriptorFieldAssignmentThroughStructTemporary=new("GS0499",DiagnosticSeverity.Error,"Cannot modify field '{0}' of struct type '{1}' because the receiver is not writable storage. Store the receiver in a mutable variable first.");
372
373
internalstaticreadonlyDiagnosticDescriptorCannotTakeAddressOfNonLvalue=new("GS9001",DiagnosticSeverity.Error,"Cannot take address of '{0}': expression is not an lvalue.");
373
374
internalstaticreadonlyDiagnosticDescriptorArgumentMustBePassedByRef=new("GS9002",DiagnosticSeverity.Error,"Argument {0} to '{1}' must be passed by reference (`&`).");
374
375
internalstaticreadonlyDiagnosticDescriptorVariableNotDefinitelyAssignedForRef=new("GS9003",DiagnosticSeverity.Error,"Variable '{0}' must be definitely assigned before being passed by `ref`.");
0 commit comments