13 references to ERR_CollectionBuilderNoElementType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Conversions.cs (1)
1757
ErrorCode.
ERR_CollectionBuilderNoElementType
:
Errors\ErrorFacts.cs (1)
2405
or ErrorCode.
ERR_CollectionBuilderNoElementType
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (11)
Semantics\CollectionExpressionTests.cs (9)
17825
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<object>").WithLocation(6, 34),
17828
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[1, 2, 3]").WithArguments("MyCollection<int>").WithLocation(7, 31));
21345
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<T>").WithLocation(17, 42),
21348
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<int>").WithLocation(24, 31));
21390
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<int>").WithLocation(6, 31));
21422
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<T>").WithLocation(8, 42),
21425
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<int>").WithLocation(18, 31));
26911
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<object>").WithLocation(15, 34),
26914
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<object>").WithLocation(16, 39));
Semantics\ExtensionTests2.cs (2)
31215
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<int>").WithLocation(5, 23));
31244
Diagnostic(ErrorCode.
ERR_CollectionBuilderNoElementType
, "[]").WithArguments("MyCollection<int>").WithLocation(5, 23));