Skip to content

Go to Metadata - static field handling is wrong #11526

Description

@cartermp

Navigate to System.Char.

Notice that the MaxValue and MinValue fields are listed as static vals. This is wrong. They cannot just be marked with [<DefaultValue>] either.

image

If we follow the error message you would get if you tried to write this into your own signature, it compiles:

image

But this is no longer correct, since the value in question is a public const field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-FCSBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.

    Type

    No fields configured for Bug.

    Projects

    Status
    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions