Skip to content

IsExternalInit decoding should be more restrictive #44671

@RikkiGibson

Description

@RikkiGibson

// PROTOTYPE(init-only): make this more restrictive (ie. disallow aside from the return value of an instance setter)

comp.VerifyDiagnostics(); // PROTOTYPE(init-only): expect error diagnostics

Assert.False(property0.HasUseSiteError); // PROTOTYPE(init-only): expect use-site error

// PROTOTYPE(init-only): when decoding PE for a ref property, we don't allow IsExternalInit on the return (as opposed to ref return). We don't allow such properties in source.

// PROTOTYPE(init-only): make this more restrictive (ie. disallow aside from the return value of an instance setter)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions