ℹ️ This bug was fixed! It is not present anymore, if .NET SDKs in versions 8.0.407 and 9.0.202. It was present in
the combination of 8.0.206 and 9.0.103, which is when this was written up.
This is a demo for a bug involving
- A base
recordin a nuget built withnet8.0 - A derived
recordin an application built withnet9.0, that also has a property with therequiredmodifier not set from the constructor
The described setup will then result in a missing call to the base copy constructor in the derived record's implicitly generated copy constructor.