Skip to content

Conversion to generic interface breaks CCWs for collection types #1663

@Sergio0694

Description

@Sergio0694

Describe the bug

To Reproduce

Triggered by this ItemsSource binding. The viewmodel property is this one.

public ShaderRunnerViewModel[] ComputeShaderOptions { get; } = ...

Works.

public IReadOnlyList<ShaderRunnerViewModel> ComputeShaderOptions { get; } = ...

Crashes.

Note

I've tried using an array expression instead of a collection expression, I still get the same exact crash.

Stack trace

image

Expected behavior

Should work fine

Version Info

Latest from staging/AOT (016e9ec)

Additional context

Possibly related to #1661.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AOTbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions