Skip to content

Crash when params array used with reordered attribute arguments #60572

@RikkiGibson

Description

@RikkiGibson

The break was probably introduced by #59750. I'll take a look.

Originally posted by @RikkiGibson in dotnet/runtime#67440 (comment)

Scenario:

using System;

class Attr : Attribute
{
    public Attr(bool b, int i, params object?[] parameters) { }
}

[Attr(i: 1, b: true)]
class Program { }

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions