Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

"CS8306: Tuple element name inferred" reported for deconstruction assignment with inferred name and type #21028

Closed
Assignees
cston
Milestone
@cston

Description

@cston

Compile with language version 7.0 with 7.1 compiler:

class C{    static void M(int a, int b, bool condition)    {        (var c, var d) = condition ? (a, default(object)) : (b, null);    }}
(5,26): error CS8306: Tuple element name 'a' is inferred. Please use language version 7.1 or greater to access an element by its inferred name.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp