48 references to ERR_CollectionArgumentsNotSupportedForType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Conversions.cs (1)
1169
ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
,
Errors\ErrorFacts.cs (1)
2550
or ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (40)
Semantics\CollectionExpressionTests_WithElement_ArraysAndSpans.cs (29)
33
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("int[]").WithLocation(5, 24));
52
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("int[]").WithLocation(5, 24));
90
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("int[][]").WithLocation(5, 26));
109
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("int[]").WithLocation(5, 24));
128
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("string[]").WithLocation(5, 27));
149
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.Span<int>").WithLocation(7, 27));
170
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.Span<int>").WithLocation(7, 27));
191
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.Span<int>").WithLocation(7, 27));
212
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.Span<string>").WithLocation(7, 30));
233
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.ReadOnlySpan<int>").WithLocation(7, 35));
254
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.ReadOnlySpan<int>").WithLocation(7, 35));
275
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.ReadOnlySpan<int>").WithLocation(7, 35));
296
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.ReadOnlySpan<char>").WithLocation(7, 36));
317
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("int[]").WithLocation(7, 30));
342
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.Span<int>").WithLocation(8, 34));
367
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.ReadOnlySpan<int>").WithLocation(8, 42));
439
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("int[]").WithLocation(7, 17));
462
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.Span<int>").WithLocation(9, 17));
485
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.ReadOnlySpan<int>").WithLocation(9, 17));
504
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("int[]").WithLocation(5, 17));
525
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.Span<int>").WithLocation(7, 17));
546
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.ReadOnlySpan<int>").WithLocation(7, 17));
566
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("int[]").WithLocation(6, 24));
588
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.Span<int>").WithLocation(8, 27));
636
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("int[]").WithLocation(5, 24));
758
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("T[]").WithLocation(5, 22));
779
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.Span<T>").WithLocation(7, 25));
800
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.ReadOnlySpan<T>").WithLocation(7, 33));
822
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments(type));
Semantics\CollectionExpressionTests_WithElement_Extra.cs (11)
41
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("int[]").WithLocation(1, 12));
48
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("int[]").WithLocation(1, 12));
257
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("T[]").WithLocation(7, 35));
278
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("T[]").WithLocation(6, 14),
336
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments($"System.{spanType}<T>"));
360
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments(spanType),
954
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments(typeName).WithLocation(8, 14),
957
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments(typeName).WithLocation(9, 14),
963
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments(typeName).WithLocation(10, 14),
966
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments(typeName).WithLocation(11, 14),
969
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments(typeName).WithLocation(12, 14));
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (6)
IOperation\IOperationTests_ICollectionExpressionOperation.cs (6)
77
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("int[]").WithLocation(5, 20));
139
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("int[]").WithLocation(5, 20));
205
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("int[]").WithLocation(5, 20));
272
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.Span<int>").WithLocation(6, 24));
335
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.Span<int>").WithLocation(6, 24));
402
Diagnostic(ErrorCode.
ERR_CollectionArgumentsNotSupportedForType
, "with").WithArguments("System.Span<int>").WithLocation(6, 24));