Skip to content

Unused field not reported in Roslyn build #76729

@jjonescz

Description

@jjonescz

Version Used: b7e891b

Not sure if this is infra or analyzer issue, but I would expect this unused field to generate IDE0052 warning during CI builds:

private static readonly char[] s_directorySeparator = [Path.DirectorySeparatorChar];

The IDE0052 warning is reported in IDE (both VS and VSCode) but not during builds.

Btw, this field reports the warning during builds if suppressions around it are removed:

private readonly SemanticModel _nullableEnabledSemanticModel;

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions