wildcard bounds composition (IDEA-113297)

This commit is contained in:
Anna Kozlova
2014-01-30 18:04:38 +04:00
parent f0bfe3604e
commit 876784bc24
3 changed files with 29 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
public class Test {
{
addListener(this::editPropertyChanged);
}
void addListener(ChangeListener<? super Boolean> changeListener){}
public void editPropertyChanged(Value<? extends Boolean> property) {}
interface ChangeListener <T> {
void changed(Value<? extends T> value);
}
class Value<K> {}
}