mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
method chain: capture wildcard on wildcard bounds
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
|
||||
class TableModelBuilder<Self extends TableModelBuilder<?>> {
|
||||
public Self addColumns() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Self addAndGet() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void leave() {}
|
||||
|
||||
void foo(TableModelBuilder<?> m) {
|
||||
m.addColumns().addAndGet() .leave();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user