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. (#16804)

* Duplicate some existing scoping tests for pattern declarations in declarator arguments, where they are not permitted.
Fixes #13660
  • Loading branch information
gafter committed Feb 9, 2017
1 parent d0ca6f3 commit 260519d
Show file tree
Hide file tree
Showing 2 changed files with 2,010 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ protected static void VerifyModelForDeclarationPattern(SemanticModel model, Sing
VerifyModelForDeclarationPattern(model, decl, false, references);
}

protected static void VerifyModelForDeclarationPatternWithoutDataFlow(SemanticModel model, SingleVariableDesignationSyntax decl, params IdentifierNameSyntax[] references)
{
VerifyModelForDeclarationPattern(model, decl, false, references);
}

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

0 comments on commit 260519d

Please sign in to comment.