Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AOT generator misses assignments in object initializer expressions #1870

Open
Sergio0694 opened this issue Nov 15, 2024 · 0 comments
Open

AOT generator misses assignments in object initializer expressions #1870

Sergio0694 opened this issue Nov 15, 2024 · 0 comments
Labels

Comments

@Sergio0694
Copy link
Member

Sergio0694 commented Nov 15, 2024

Description

It seems object initializer expressions throw off the generator, which misses types being assigned to properties.

Steps To Reproduce

Something like this:

class A
{
    public IEnumerable<string> Items { get; set; }
}

class B<T> : List<T>;

var obj = new A()
{
    Items = new B<string>(); // Generator misses this
};

Expected Behavior

B<string> should show up in the global CCW vtable.

Version Info

  • CsWinRT 2.2.0
@Sergio0694 Sergio0694 added the AOT label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant