Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Issue #3544: oops, late+specifier captures
Browse files Browse the repository at this point in the history
  • Loading branch information
tombentley committed Jan 24, 2017
1 parent 606e345 commit 2262ade
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ private int usedIn(List<Statement> stmts) {
@Override public void visit(Tree.AttributeDeclaration that) {
super.visit(that);
final SpecifierOrInitializerExpression specifier = that.getSpecifierOrInitializerExpression();
if (specifier != null && specifier instanceof Tree.LazySpecifierExpression) {
if (specifier != null && (specifier instanceof Tree.LazySpecifierExpression
|| that.getDeclarationModel().isLate())) {
boolean cs = enterCapturingScope();
specifier.visit(this);
exitCapturingScope(cs);
Expand Down

0 comments on commit 2262ade

Please sign in to comment.