diff --git a/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs b/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs index b41f00682a..031f7dc2da 100644 --- a/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs +++ b/ICSharpCode.NRefactory.Tests/CSharp/CodeCompletion/CodeCompletionBugTests.cs @@ -6083,5 +6083,22 @@ public class Test Assert.IsTrue(provider == null || provider.Count == 0); } + [Ignore("Parser bug")] + [Test] + public void TestBugWithLambdaParameter() + { + CombinedProviderTest(@"using System.Collections.Generic; + + class C + { + public static void Main (string[] args) + { + List list; + $list.Find(l => l.Name == l.Name ? l$ + } + }", provider => { + Assert.IsNotNull(provider.Find("l")); + }); + } } }