15 references to ERR_CollectionExpressionTargetNoElementType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Conversions.cs (1)
2293
ErrorCode.
ERR_CollectionExpressionTargetNoElementType
,
Errors\ErrorFacts.cs (1)
2433
or ErrorCode.
ERR_CollectionExpressionTargetNoElementType
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (13)
Semantics\CollectionExpressionTests.cs (13)
9262
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[t, u]").WithArguments("B<T, U>").WithLocation(13, 40),
9265
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[x, y]").WithArguments("B<T, U>").WithLocation(17, 46));
10667
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[]").WithArguments("MyCollection").WithLocation(6, 13),
10670
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, @"[""1""]").WithArguments("MyCollection").WithLocation(7, 13),
10673
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[2]").WithArguments("MyCollection").WithLocation(8, 13));
10750
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[]").WithArguments("MyCollection<object, string>").WithLocation(5, 32),
10753
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[2]").WithArguments("MyCollection<int, string>").WithLocation(6, 29),
10756
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[t]").WithArguments("MyCollection<T, U>").WithLocation(10, 22));
32098
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[1]").WithArguments("Collection").WithLocation(4, 16));
32131
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[1]").WithArguments("Collection").WithLocation(4, 16));
32159
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, @"[""hi""]").WithArguments("Collection").WithLocation(4, 16)
32255
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[new C()]").WithArguments("Collection").WithLocation(4, 16));
32345
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[new C()]").WithArguments("Collection").WithLocation(4, 16));