Skip to content

Inconsistent syntax coloring of generic parameters on static members #6516

@asik

Description

@asik
type MyType() =
    static member GenericStatic<'a> (a:'a) = a

[<EntryPoint>]
let main _ =
    let c = MyType.GenericStatic<string> "" // The generic parameters and brackets are colored as functions
    0

image

Expected behavior

Brackets "< >" should be colored with the default and the type parameter should be colored as a type.

Actual behavior

The whole thing is colored as a function.

Related information

There are several inconsistencies around this, perhaps it would be better to consolidate into a single bug?
#4792
#2585

Here's a picture showing all the inconsistencies around generic type colorization that I know of:
image

VS2019 16.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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