Skip to content

Commit

Permalink
Added test case for dotnet#24344
Browse files Browse the repository at this point in the history
  • Loading branch information
MaStr11 authored and sharwell committed Jan 23, 2018
1 parent 3c1643f commit cbe7a5f
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1508,6 +1508,27 @@ public void Caller()
}");
}

[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseLocalFunction)]
[WorkItem(24344, "https://github.com/dotnet/roslyn/issues/24344")]
public async Task TestMissingIfUsedInExpressionTree2()
{
await TestMissingAsync(
@"using System;
using System.Linq.Expressions;
public class C
{
void Method(Action action) { }
Expression<Action> Example()
{
Action [||]action = () => Method(null);
return () => Method(action);
}
}
");
}

[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseLocalFunction)]
[WorkItem(23150, "https://github.com/dotnet/roslyn/issues/23150")]
public async Task TestWithInvokeMethod1()
Expand Down

0 comments on commit cbe7a5f

Please sign in to comment.