This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.function.Consumer; | |
class A { | |
void test() { | |
Consumer<String> a = b -> { | |
int c = 0; | |
}; | |
a = new Consumer<String>() { | |
@Override | |
public void accept(String s) { } | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Without the super call, line 6 of
int c = 0
will not have thefinal
modifier added to it.