Skip to content

Commit

Permalink
Add noncompliant test
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe-zurn-sonarsource committed Nov 22, 2019
1 parent 486f84f commit 860309d
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,16 @@ static IEnumerable<string> TestNullFromParenthesizedLambda()
return null;
});
}

static IEnumerable<string> MethodWillLambdaStillRaiseIssue()
{
var list = new List<string>();

return list.Select<string, string>((o, i) =>
{
return null;
});
return null; // Noncompliant
}
}
}

0 comments on commit 860309d

Please sign in to comment.