Deprecated extension method syntax dropped

This commit is contained in:
Roman Shevchenko
2013-02-27 20:40:44 +01:00
parent f4330beba2
commit 54a7b4dc70
31 changed files with 67 additions and 290 deletions
@@ -7,7 +7,7 @@ class Test {
interface InOut<A> {
A run() throws IOException;
<B> InOut<B> bind(final Eff<A, InOut<B>> f) default {
default <B> InOut<B> bind(final Eff<A, InOut<B>> f) {
return () -> f.f(InOut.this.run()).run();
}
}
@@ -7,7 +7,7 @@ class Test {
interface InOut<A> {
A run() throws IOException;
<B> InOut<B> bind(final Eff<A, InOut<B>> f) default {
default <B> InOut<B> bind(final Eff<A, InOut<B>> f) {
return new In<caret>Out<B>() {
@Override
public B run() throws IOException {