7 references to ERR_BadCtorArgCount
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Expressions.cs (2)
5301diagnostics.Add(ErrorCode.ERR_BadCtorArgCount, node.Location, type, 0); 7011diagnostics.Add(ErrorCode.ERR_BadCtorArgCount, typeNode.Location, interfaceType, analyzedArguments.Arguments.Count);
Binder\Binder_InterpolatedString.cs (2)
763var nonOutConstructorHasArityError = nonOutConstructorDiagnostics.DiagnosticBag?.AsEnumerableWithoutResolution().Any(d => (ErrorCode)d.Code == ErrorCode.ERR_BadCtorArgCount) ?? false; 764var outConstructorHasArityError = outConstructorDiagnostics.DiagnosticBag?.AsEnumerableWithoutResolution().Any(d => (ErrorCode)d.Code == ErrorCode.ERR_BadCtorArgCount) ?? false;
Binder\Binder_Statements.cs (1)
3931diagnostics.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)
1362or ErrorCode.ERR_BadCtorArgCount