15 references to ERR_CollectionExpressionTargetNoElementType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Conversions.cs (1)
1758
ErrorCode.
ERR_CollectionExpressionTargetNoElementType
,
Errors\ErrorFacts.cs (1)
2431
or ErrorCode.
ERR_CollectionExpressionTargetNoElementType
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (13)
Semantics\CollectionExpressionTests.cs (13)
9261
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[t, u]").WithArguments("B<T, U>").WithLocation(13, 40),
9264
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[x, y]").WithArguments("B<T, U>").WithLocation(17, 46));
10666
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[]").WithArguments("MyCollection").WithLocation(6, 13),
10669
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, @"[""1""]").WithArguments("MyCollection").WithLocation(7, 13),
10672
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[2]").WithArguments("MyCollection").WithLocation(8, 13));
10749
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[]").WithArguments("MyCollection<object, string>").WithLocation(5, 32),
10752
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[2]").WithArguments("MyCollection<int, string>").WithLocation(6, 29),
10755
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[t]").WithArguments("MyCollection<T, U>").WithLocation(10, 22));
31936
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[1]").WithArguments("Collection").WithLocation(4, 16));
31969
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[1]").WithArguments("Collection").WithLocation(4, 16));
31997
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, @"[""hi""]").WithArguments("Collection").WithLocation(4, 16)
32093
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[new C()]").WithArguments("Collection").WithLocation(4, 16));
32183
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[new C()]").WithArguments("Collection").WithLocation(4, 16));