8 references to ERR_ImplicitlyTypedVariableCannotBeConst
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Statements.cs (1)
810
Error(diagnostics, ErrorCode.
ERR_ImplicitlyTypedVariableCannotBeConst
, declarationNode);
Errors\ErrorFacts.cs (1)
1051
case ErrorCode.
ERR_ImplicitlyTypedVariableCannotBeConst
:
Symbols\Source\SourceMemberFieldSymbol.cs (1)
511
diagnosticsForFirstDeclarator.Add(ErrorCode.
ERR_ImplicitlyTypedVariableCannotBeConst
, typeSyntax.Location);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\ColorColorTests.cs (1)
1964
Diagnostic(ErrorCode.
ERR_ImplicitlyTypedVariableCannotBeConst
, "var E = E.A").WithLocation(11, 15),
Semantics\ScriptSemanticsTests.cs (1)
1380
Diagnostic(ErrorCode.
ERR_ImplicitlyTypedVariableCannotBeConst
, "var").WithLocation(1, 27),
Semantics\SemanticErrorTests.cs (3)
12256
Diagnostic(ErrorCode.
ERR_ImplicitlyTypedVariableCannotBeConst
, "var x = 0").WithLocation(6, 15),
12259
Diagnostic(ErrorCode.
ERR_ImplicitlyTypedVariableCannotBeConst
, "var y = (int?)null + x").WithLocation(7, 15),
12273
Diagnostic(ErrorCode.
ERR_ImplicitlyTypedVariableCannotBeConst
, "var"));