All source generators fail with nested types that are not classes #210
Labels
bug 🐛
An unexpected issue that highlights incorrect behavior
mvvm-toolkit 🧰
Issues/PRs for the MVVM Toolkit
next preview ✈️
This changes will be available in the upcoming preview
priority 🚩
An issue or change that has priority
Describe the bug
The source generator only assumes nested types will all be classes.
It should instead track the type of each nested type, and correclty generate that.
Regression
No, always been broken
Steps to reproduce
Paste the following snippet:
This results in the following code:
Expected behavior
The generated code would use the appropriate type for each nested type.
IDE and version
VS 2022
IDE version
17.1
Nuget packages
Nuget package version(s)
main
The text was updated successfully, but these errors were encountered: