7 references to ERR_BadCtorArgCount
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Expressions.cs (2)
5301
diagnostics.Add(ErrorCode.
ERR_BadCtorArgCount
, node.Location, type, 0);
7011
diagnostics.Add(ErrorCode.
ERR_BadCtorArgCount
, typeNode.Location, interfaceType, analyzedArguments.Arguments.Count);
Binder\Binder_InterpolatedString.cs (2)
763
var nonOutConstructorHasArityError = nonOutConstructorDiagnostics.DiagnosticBag?.AsEnumerableWithoutResolution().Any(d => (ErrorCode)d.Code == ErrorCode.
ERR_BadCtorArgCount
) ?? false;
764
var outConstructorHasArityError = outConstructorDiagnostics.DiagnosticBag?.AsEnumerableWithoutResolution().Any(d => (ErrorCode)d.Code == ErrorCode.
ERR_BadCtorArgCount
) ?? false;
Binder\Binder_Statements.cs (1)
3931
diagnostics.Add(ErrorCode.
ERR_BadCtorArgCount
, diagnosticsLocation, baseType, /*desired param count*/ 0);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
942
(object t, _, _) => (ErrorCode.
ERR_BadCtorArgCount
, t),
Errors\ErrorFacts.cs (1)
1362
or ErrorCode.
ERR_BadCtorArgCount