testdata for IDEA-148093

This commit is contained in:
Anna Kozlova
2015-12-02 11:56:14 +01:00
parent bb5f40c196
commit 5ac3bde398
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
abstract class WrapperOne<T> {
public abstract <X> WrapperOne<X> reformChain(Reformer<? extends WrapperTwo<? extends X>> reformer);
}
interface WrapperTwo<T> {}
interface Reformer<T> {
T reform();
}
class ReformerClient {
public WrapperOne<String> sampleChainA(WrapperOne<String> p, Reformer<WrapperTwo<String>> r) {
return p.reformChain(r::reform);
}
public WrapperOne<String> sampleChainB(WrapperOne<String> p, Reformer<? extends WrapperTwo<String>> r) {
return p.reformChain(r::reform);
}
public WrapperOne<String> sampleChainC(WrapperOne<String> p, Reformer<? extends WrapperTwo<String>> r) {
return p.reformChain(r);
}
}