6 references to ERR_CollectionRefLikeElementType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Conversions.cs (1)
896
_diagnostics.Add(ErrorCode.
ERR_CollectionRefLikeElementType
, _node.Syntax);
Errors\ErrorFacts.cs (1)
2553
or ErrorCode.
ERR_CollectionRefLikeElementType
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Semantics\CollectionExpressionTests.cs (1)
33688
Diagnostic(ErrorCode.
ERR_CollectionRefLikeElementType
, "[]").WithLocation(15, 22));
Semantics\CollectionExpressionTests_WithElement_ArraysAndSpans.cs (2)
397
Diagnostic(ErrorCode.
ERR_CollectionRefLikeElementType
, "[[1, 2, 3], [4, 5, 6]]").WithLocation(8, 47));
418
Diagnostic(ErrorCode.
ERR_CollectionRefLikeElementType
, "[t1]").WithLocation(7, 31));
Semantics\CollectionExpressionTests_WithElement_Extra.cs (1)
2349
Diagnostic(ErrorCode.
ERR_CollectionRefLikeElementType
, "[]").WithLocation(5, 26),