dotnet/roslyn

Cannot "Go To Definition" of a type keyword if you are within that type in decompilation

Open

#25,301 opened on Mar 7, 2018

View on GitHub
 (3 comments) (0 reactions) (0 assignees)C# (4,257 forks)batch import
Area-IDEBughelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (Avg merge 6d 17h) (256 merged PRs in 30d)

Description

(Turn on decompilation)

  1. Create Console App (.NET Framework)
  2. In the following, CTRL+Click int
    class Program
    {
        static void Main(string[] args)
        {
            int foo;
        }
    }
  1. When prompted say Yes to decompile
  2. Scroll down to bool TryParse(string s, out int result)
  3. try and CTRL+Click int

Expected: To go to the top of the class to the definition Actual: It's not clickable

Contributor guide