Skip to content

Generic type arguments issue #14

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

Closed
ChebanovDD opened this issue Jul 7, 2023 · 0 comments · Fixed by #15
Closed

Generic type arguments issue #14

ChebanovDD opened this issue Jul 7, 2023 · 0 comments · Fixed by #15
Assignees
Labels
bug Something isn't working

Comments

@ChebanovDD
Copy link
Contributor

Describe the bug

Only the first generic argument is presented in the UxmlTraits.

Minimal reproduction code and steps

Create a control with a complex BaseType like the following:

[UxmlElement]
public partial class BindableImageListView : BindableListView<ImagesItemViewModel, ReusableItemsList<ImagesItemViewModel>>
{
    [UxmlAttribute(10)]
    public int ItemsCacheCapacity { get; set; }
}

Current result

public new class UxmlTraits : BindableListView<ImagesItemViewModel>.UxmlTraits
{
    ...
}

Expected result

public new class UxmlTraits : BindableListView<ImagesItemViewModel, ReusableItemsList<ImagesItemViewModel>>.UxmlTraits
{
    ...
}
@ChebanovDD ChebanovDD added the bug Something isn't working label Jul 7, 2023
@ChebanovDD ChebanovDD self-assigned this Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant