CsWinRT icon indicating copy to clipboard operation
CsWinRT copied to clipboard

AOT generator ignores generic classes inheriting from generic types

Open FrayxRulez opened this issue 1 year ago • 0 comments

Describe the bug AOT generator does not generate glue code for generic classes inheriting from generic types, causing the process to crash when trying to use these classes.

To Reproduce

// notice that there's no suggestion to add "partial" if it's missing
public partial class TestCollection<T> : ObservableCollection<T>
{
}
...
myListView.ItemsSource = new TestCollection<string>();

Expected behavior COM glue is properly generated and process won't crash

Version Info

2.1.1

FrayxRulez avatar Aug 26 '24 12:08 FrayxRulez