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
// Tracked by https://github.com/dotnet/roslyn/issues/78830 : diagnostic quality, consider using the property overload resolution result in the result to improve reported diagnostics
8738
-
result = makeErrorResult(left.Type, memberName, arity, lookupResult, expression, diagnostics);
// Tracked by https://github.com/dotnet/roslyn/issues/78830 : diagnostic quality, we'll want to describe what went wrong in a useful way (see OverloadResolutionResult.ReportDiagnostics)
8868
-
var errorInfo = new CSDiagnosticInfo(ErrorCode.ERR_ExtensionResolutionFailed, receiverType, memberName);
8869
-
diagnostics.Add(errorInfo, expression.Location);
8870
-
var resultSymbol = new ExtendedErrorTypeSymbol(containingSymbol: null, lookupResult.Symbols.ToImmutable(), LookupResultKind.OverloadResolutionFailure, errorInfo, arity);
Copy file name to clipboardExpand all lines: src/Compilers/CSharp/Portable/Errors/ErrorFacts.cs
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2543,6 +2543,7 @@ or ErrorCode.HDN_RedundantPattern
2543
2543
or ErrorCode.WRN_RedundantPattern
2544
2544
or ErrorCode.HDN_RedundantPatternStackGuard
2545
2545
or ErrorCode.ERR_BadVisBaseType
2546
+
or ErrorCode.ERR_AmbigExtension
2546
2547
=>false,
2547
2548
};
2548
2549
#pragma warning restore CS8524// The switch expression does not handle some values of its input type (it is not exhaustive) involving an unnamed enum value.
requireOneElement: forExtension, // For extension declarations, we require at least one receiver parameter
4699
4699
allowSemicolonAsSeparator: false);
4700
-
// Tracked by https://github.com/dotnet/roslyn/issues/78830 : diagnostic quality, consider suppressing parsing diagnostics on extension parameters beyond the first one
0 commit comments