method chain: capture wildcard on wildcard bounds

This commit is contained in:
Anna Kozlova
2016-02-17 17:24:41 +01:00
parent 0ac147ad95
commit fb42498c99
3 changed files with 22 additions and 2 deletions
@@ -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();
}
}