mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 09:20:53 +07:00
testdata for IDEA-148093
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user