20 references to ERR_DefaultValueNotAllowed
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Lambda.cs (1)
154Error(diagnostics, ErrorCode.ERR_DefaultValueNotAllowed, p.Default.EqualsToken);
Errors\ErrorFacts.cs (1)
1123case ErrorCode.ERR_DefaultValueNotAllowed:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Semantics\LambdaDiscardParametersTests.cs (1)
349Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").WithLocation(6, 81));
Semantics\LambdaTests.cs (10)
7128Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").WithLocation(5, 34)); 7215Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").WithLocation(5, 34), 7256Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").WithLocation(5, 41), 7300Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").WithLocation(5, 34)); 7358Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").WithLocation(14, 32), 7402Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").WithLocation(7, 37), 7454Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").WithLocation(12, 35)); 7493Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").WithLocation(7, 37)); 7561Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").WithLocation(5, 62)); 7636Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").WithLocation(5, 31),
Semantics\OutVarTests.cs (4)
33597Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").WithLocation(7, 56), 33603Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").WithLocation(8, 56), 33612Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").WithLocation(11, 56), 33618Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").WithLocation(12, 56),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Parsing\DeclarationParsingTests.cs (1)
5801Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").WithLocation(5, 28));
Parsing\ParserErrorMessageTests.cs (2)
3295Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").WithLocation(5, 27)); 3312Diagnostic(ErrorCode.ERR_DefaultValueNotAllowed, "=").WithLocation(5, 34));