Skip to content

Record structs in C# 10 is throwing an argument exception in SA1649 #3395

@twsouthwick

Description

@twsouthwick

With the latest version (1.2.0-beta.354) I'm hitting an error when using a record struct:

namespace Something
{
  public readonly record struct Sometype(
  {
    public bool IsSet { get; init; }
  }

I'm getting the following error:

Analyzer 'StyleCop.Analyzers.DocumentationRules.SA1649FileNameMustMatchTypeName' threw an exception of type 'System.ArgumentException' with message 'Unhandled declaration kind: RecordStructDeclaration'.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions