13 references to ERR_CollectionBuilderNoElementType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Conversions.cs (1)
2292
ErrorCode.
ERR_CollectionBuilderNoElementType
:
Errors\ErrorFacts.cs (1)
2407
or ErrorCode.
ERR_CollectionBuilderNoElementType
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (11)
Semantics\CollectionExpressionTests.cs (9)
17815
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<object>").WithLocation(6, 34),
17818
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[1, 2, 3]").WithArguments("MyCollection<int>").WithLocation(7, 31));
21338
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<T>").WithLocation(17, 42),
21341
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<int>").WithLocation(24, 31));
21383
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<int>").WithLocation(6, 31));
21415
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<T>").WithLocation(8, 42),
21418
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<int>").WithLocation(18, 31));
27049
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<object>").WithLocation(15, 34),
27052
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<object>").WithLocation(16, 39));
Semantics\ExtensionTests2.cs (2)
32374
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<int>").WithLocation(5, 23));
32403
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<int>").WithLocation(5, 23));