13 references to ERR_CollectionBuilderNoElementType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Conversions.cs (1)
1763
ErrorCode.
ERR_CollectionBuilderNoElementType
:
Errors\ErrorFacts.cs (1)
2405
or ErrorCode.
ERR_CollectionBuilderNoElementType
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (11)
Semantics\CollectionExpressionTests.cs (9)
17814
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<object>").WithLocation(6, 34),
17817
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[1, 2, 3]").WithArguments("MyCollection<int>").WithLocation(7, 31));
21334
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<T>").WithLocation(17, 42),
21337
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<int>").WithLocation(24, 31));
21379
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<int>").WithLocation(6, 31));
21411
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<T>").WithLocation(8, 42),
21414
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<int>").WithLocation(18, 31));
27003
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<object>").WithLocation(15, 34),
27006
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<object>").WithLocation(16, 39));
Semantics\ExtensionTests2.cs (2)
31328
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<int>").WithLocation(5, 23));
31357
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<int>").WithLocation(5, 23));