Open
Description
Describe the bug
When a templated model contains a property where both the property and underlying type are @added
in the same version , TypeSpec currently triggers the following error:
'Contoso.WidgetManager.Widget<T>.usage' is referencing versioned type 'Contoso.WidgetManager.UsageDetails' but is not versioned itself.
This only happens if the model is templated model Widget<T>
if this is updated to model Widget
the error doesn't happen
Reproduction
Checklist
- Follow our Code of Conduct
- Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.