Skip to content

[mono] Fix swift struct lowering support for InlineArray #107736

@jkurdek

Description

@jkurdek

#99439 added the struct lowering algorithm in mono type system. This change has included lowering support for structs with InlineArray attribute. However, attempting to run the struct lowering algorithm on such a struct results in a runtime crash. We should investigate and fix this problem in mono.

E.g. this should be lowered correctly.

[System.Runtime.CompilerServices.InlineArray(16)]
public struct Data
{
    private byte payload;
}

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions