Unexpected error "feature 'ref struct interfaces' is not available" #76401
Labels
Area-Compilers
Concept-Diagnostic Clarity
The issues deals with the ease of understanding of errors and warnings.
Feature - RefStructInterfaces
Milestone
Version Used: 4.13.0-3.24612.1 (c30de30)
Steps to Reproduce:
Compile with LangVersion=12:
Expected Behavior: Only error CS9102: UnscopedRefAttribute cannot be applied to an interface implementation because implemented member 'I.M()' doesn't have this attribute.
Actual Behavior: Additional error CS9202: Feature 'ref struct interfaces' is not available in C# 12.0. Please use language version 13.0 or greater.
But there is no ref struct implementing an interface.
The text was updated successfully, but these errors were encountered: