10 references to ERR_ArrayInitInBadPlace
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
613return BindUnexpectedArrayInitializer((InitializerExpressionSyntax)node, diagnostics, ErrorCode.ERR_ArrayInitInBadPlace);
Errors\ErrorFacts.cs (1)
999or ErrorCode.ERR_ArrayInitInBadPlace
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_InvalidExpression.cs (2)
484Diagnostic(ErrorCode.ERR_ArrayInitInBadPlace, "{ 1, 1 }").WithLocation(6, 45), 536Diagnostic(ErrorCode.ERR_ArrayInitInBadPlace, "{ 1 }").WithLocation(6, 44)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\SemanticAnalyzerTests.cs (2)
1297Diagnostic(ErrorCode.ERR_ArrayInitInBadPlace, "{ 13, 14 }").WithLocation(15, 40), 1300Diagnostic(ErrorCode.ERR_ArrayInitInBadPlace, "{ 15, 16 }").WithLocation(15, 52),
Semantics\SemanticErrorTests.cs (1)
11623new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.ERR_ArrayInitInBadPlace, Line = 6, Column = 21 } });
Semantics\StackAllocInitializerTests.cs (3)
857Diagnostic(ErrorCode.ERR_ArrayInitInBadPlace, "{ 42 }").WithLocation(6, 40), 860Diagnostic(ErrorCode.ERR_ArrayInitInBadPlace, "{ 42 }").WithLocation(7, 40), 863Diagnostic(ErrorCode.ERR_ArrayInitInBadPlace, "{ 42 }").WithLocation(8, 40)