Registry Mirror
Skip to content

Nameof is not classified in generic form or pattern form #10026

Closed

Description

@cartermp

Latest dogfood:

image

This should be blue.

Activity

  1. added this to the Backlog milestone on Aug 27, 2020
  2. changed the title [-]Nameof on generic types is not colored[/-] [+]Nameof not colored blue in generic form or pattern form[/+] on Aug 27, 2020
  3. cartermp commented on Aug 27, 2020

    @cartermp
    ContributorAuthor

    image

  4. cartermp commented on Aug 27, 2020

    @cartermp
    ContributorAuthor

    @dsyme @TIHan the issue here is that nameof in either case is not actually in the captured name resolutions.

    For both of these examples:

    type C<'TType>() =
        static member Beef = nameof<'TType>
    
    let rec f (s: string) =
        match s with
        | nameof f -> () 
        | _ -> ()

    I get name resolutions for the 'TType and f that I'm taking a name of, but not nameof itself.

  5. changed the title [-]Nameof not colored blue in generic form or pattern form[/-] [+]Nameof is not classified in generic form or pattern form[/+] on Aug 27, 2020
  6. added
    Impact-Low
    on Aug 31, 2020
  7. added
    Impact-Medium
    and removed
    Impact-Low
    on Sep 1, 2020
  8. cartermp commented on Sep 1, 2020

    @cartermp
    ContributorAuthor

    @dsyme I bumped this out of low priority. Colors have significance in the editor and by not being accurate here we're effectively misleading folks. I suspect this will get a lot of pings from people who start to use nameof prolifically in a larger codebase. We should fix this.

  9. abelbraaksma commented on Sep 1, 2020

    @abelbraaksma
    Contributor

    This is related: #7826 (but not the same, that issue is caused by incorrect preview feature parsing).

  10. am11 commented on Sep 15, 2020

    @am11
    Member

    While reading this thread, noticed the syntax highlight disparity between GitHub markdown's F# code rendering and VS Code. Opened a PR for it to use the same grammar as VS Code: github-linguist/linguist#5011. 😺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-FCSBugImpact-Medium

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions