From 672634c8ef3161a8c3e0102d69af38433a568991 Mon Sep 17 00:00:00 2001 From: Neal Gafter Date: Wed, 2 Mar 2016 21:41:46 -0800 Subject: [PATCH] Add test for goto definition on a property pattern's member name. Closes #9072 --- .../GoToDefinition/GoToDefinitionTests.vb | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/src/EditorFeatures/Test2/GoToDefinition/GoToDefinitionTests.vb b/src/EditorFeatures/Test2/GoToDefinition/GoToDefinitionTests.vb index a137aab2a47ae..0defecb4d3840 100644 --- a/src/EditorFeatures/Test2/GoToDefinition/GoToDefinitionTests.vb +++ b/src/EditorFeatures/Test2/GoToDefinition/GoToDefinitionTests.vb @@ -632,6 +632,79 @@ class C Await TestAsync(workspace) End Function + + Public Async Function TestCSharpGoToDefinitionFromPatternType01() As Task + Dim workspace = + + + + + + + Await TestAsync(workspace) + End Function + + + Public Async Function TestCSharpGoToDefinitionFromPatternType02() As Task + Dim workspace = + + + null; + public Plus(Expression Left) + { + this.Left = Left; + } + } + public class X + { + public static void Main() + { + Expression expr = null; + if (expr is Plus { $$Left is Plus }) + ]]> + + + + Await TestAsync(workspace) + End Function + #End Region #Region "CSharp Venus Tests"