Skip to content

Should referencing [IsReadOnly] signatures without an [InAttribute] modreq be allowed? #19792

@OmarTawfik

Description

@OmarTawfik

If a reference exists that has a virtual method with a ref-readonly parameter and [IsReadOnly] attribute, but no [IsConst] required modifier: Per feature design this is not possible, but it can be created by external tools/compilers. Should it be imported and used in the compilation? or should we mark it as a bad symbol and generate a use site error for it?

This issue should track design decisions taken around this issue, and how to fix it.
Issue was raised in #19658, where the PR for now allows it and added tests to verify the behavior.

cc @AlekseyTs @VSadov

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions