Skip to content

Generic type arguments issue #14

Closed
@ChebanovDD

Description

@ChebanovDD

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
{
    ...
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions