You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected Behavior: Error at ref F same as if the UnscopedRef attribute wasn't present, because the code should use the old ref safety rules when compiled with C# 10 and TFM net6.0.
error CS8170: Struct members cannot return 'this' or other instance members by reference
Actual Behavior: No errors.
The text was updated successfully, but these errors were encountered:
Version Used: .NET 9 RC2
Steps to Reproduce:
Compile with C# 10 and TFM net6.0:
Expected Behavior: Error at
ref F
same as if the UnscopedRef attribute wasn't present, because the code should use the old ref safety rules when compiled with C# 10 and TFM net6.0.Actual Behavior: No errors.
The text was updated successfully, but these errors were encountered: