Skip to content

Potential source breaking changes due to params collection #73857

@hez2010

Description

@hez2010

Version Used: 9.0.100-preview.6.24304.2

Steps to Reproduce:

string.Concat(["a", "b"]);

Diagnostic Id: CS0121

Expected Behavior: No compilation error

Actual Behavior:

CS0121 The call is ambiguous between the following methods or properties: 'string.Concat(scoped ReadOnlySpan<object?>)' and 'string.Concat(scoped ReadOnlySpan<string?>)'

Note that this is a source breaking change from C# 12 where the code used to compile.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions