Skip to content

Commit

Permalink
Duplicate some existing scoping tests for pattern declarations in dec…
Browse files Browse the repository at this point in the history
…larator arguments, where they are not permitted.

Fixes dotnet#13660
  • Loading branch information
gafter committed Jan 27, 2017
1 parent f3717ae commit fe76c01
Show file tree
Hide file tree
Showing 2 changed files with 2,011 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ protected static void VerifyModelForDeclarationPattern(SemanticModel model, Sing
VerifyModelForDeclarationPattern(model, decl, false, references);
}

protected static void VerifyModelForDeclarationPatternWithoutDataFlow(SemanticModel model, SingleVariableDesignationSyntax decl, params IdentifierNameSyntax[] references)
{
// TODO: should anything be different here?
VerifyModelForDeclarationPattern(model, decl, false, references);
}

protected static void VerifyModelForDeclarationPattern(
SemanticModel model,
SingleVariableDesignationSyntax designation,
Expand Down
Loading

0 comments on commit fe76c01

Please sign in to comment.