Skip to content

Commit

Permalink
Implicitly capture when default method is called by SuperMethodInvoca…
Browse files Browse the repository at this point in the history
…tion

	Change on 2016/05/03 by lukhnos <lukhnos@google.com>

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=121385226
  • Loading branch information
lukhnos authored and tomball committed May 17, 2016
1 parent b625ebb commit d06be14
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,9 @@ public void endVisit(SuperMethodInvocation node) {
if (BindingUtil.isDefault(node.getMethodBinding())) {
// Default methods can be invoked with a SuperMethodInvocation. In this
// case the qualifier is not an enclosing class, but the interface that
// implements the default method.
// implements the default method. Since the default method is an instance
// method it implicitly captures self.
markImplicitCaptures();
return;
}
Name qualifier = node.getQualifier();
Expand Down

0 comments on commit d06be14

Please sign in to comment.