This is a followup to the issue transferred to dotnet/roslyn#84307
This does uncover questions on how we should describe foreach, and how we specify the behavior of identity conversions:
There are a number of forward looking comments here: dotnet/roslyn#84307 (comment) When we reach the versions where ref struct types are allowed to implement some interfaces, we'll need to address some of them.
This is a followup to the issue transferred to dotnet/roslyn#84307
This does uncover questions on how we should describe
foreach, and how we specify the behavior of identity conversions:foreachmake it clear that a value based collection could be mutated? Is that necessary in the normative language?foreach? One where the collection type has the necessary public members, and one where the collection type explicitly implements the expected interfaces?There are a number of forward looking comments here: dotnet/roslyn#84307 (comment) When we reach the versions where
ref structtypes are allowed to implement some interfaces, we'll need to address some of them.