good code red: do not apply the same substitutor twice - lead to problems when params depend recursively (IDEA-91866)

This commit is contained in:
anna
2012-09-21 16:50:12 +02:00
parent e3a545b2d0
commit e483d67491
3 changed files with 24 additions and 3 deletions
@@ -0,0 +1,20 @@
abstract class F<A, B> {
public abstract B f(A a);
public final F<A, P1<B>> lazy() {
return new F<A, P1<B>>() {
public P1<B> f(final A a) {
return null;
}
};
}
private class TestClient<A, B> extends F<A, P1<B>> {
public P1<B> f(final A a) {
return null;
}
}
}
class P1<T> {
}