15 references to ERR_CollectionExpressionTargetNoElementType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Conversions.cs (1)
1776
ErrorCode.
ERR_CollectionExpressionTargetNoElementType
,
Errors\ErrorFacts.cs (1)
2432
or ErrorCode.
ERR_CollectionExpressionTargetNoElementType
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (13)
Semantics\CollectionExpressionTests.cs (13)
7422
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[t, u]").WithArguments("B<T, U>").WithLocation(13, 40),
7425
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[x, y]").WithArguments("B<T, U>").WithLocation(17, 46));
8827
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[]").WithArguments("MyCollection").WithLocation(6, 13),
8830
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, @"[""1""]").WithArguments("MyCollection").WithLocation(7, 13),
8833
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[2]").WithArguments("MyCollection").WithLocation(8, 13));
8910
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[]").WithArguments("MyCollection<object, string>").WithLocation(5, 32),
8913
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[2]").WithArguments("MyCollection<int, string>").WithLocation(6, 29),
8916
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[t]").WithArguments("MyCollection<T, U>").WithLocation(10, 22));
29699
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[1]").WithArguments("Collection").WithLocation(4, 16));
29732
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[1]").WithArguments("Collection").WithLocation(4, 16));
29760
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, @"[""hi""]").WithArguments("Collection").WithLocation(4, 16)
29856
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[new C()]").WithArguments("Collection").WithLocation(4, 16));
29946
Diagnostic(ErrorCode.
ERR_CollectionExpressionTargetNoElementType
, "[new C()]").WithArguments("Collection").WithLocation(4, 16));