Skip to content

Prohibit stackalloc int[3][1] #1232

@jskeet

Description

@jskeet

In #1211 it looks like stackalloc int[3][1] should be valid by the standard, but Roslyn complains. We've decided it wouldn't do what is probably expected anyway, so it would be better to prohibit it in the standard.

We haven't yet decided on the best approach for this (e.g. in the grammar or as an additional semantic rule in the text).

Metadata

Metadata

Assignees

No one assigned

    Labels

    meeting: discussThis issue should be discussed at the next TC49-TG2 meeting

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions