Skip to content

Checked regions can't live on Statement Expressions #887

Open
@aaronjeline

Description

@aaronjeline

Consider:

void foo(_Ptr<int> x) { 
  int z = (_Checked { int y = *x; y + 1; });
}

If the _Checked is removed this code compiles fine, however with _Checked added the compiler fails, with Expected Expression

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis labels new features and enhancements.priority:3This labels bugs that are not very critical but still need to be addressed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions