Skip to content

Investigate combinations of unsafe & ref #886

@Nigel-Ecma

Description

@Nigel-Ecma

In PR #837 @KalleOlaviNiemitalo raised two comments regarding combinations of unsafe & ref that they believe should be allowed. They are being pushed to this issue to allow the PR to proceed.

This should be allowed:

unsafe delegate ref int D(int* p);

link

This should be allowed:

class C {
    unsafe ref int M(int* p) => ref *p;
}

link


Associated WorkItem - 157262

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions