summaryrefslogtreecommitdiff
path: root/t/t4018/java-method-return-generic-bounded
blob: 66dd78c379a5f67f68bf3c4d165b63cfd04986f6 (plain)
1
2
3
4
5
6
7
8
9
class MyExample {
    public <T extends Bar & Foo<T>, R> Map<T, R[]> foo(String[] RIGHT) {
        someMethodCall();
        someOtherMethod()
            .doThat();
        // Whatever...
        return (List<T>) Arrays.asList("ChangeMe");
    }
}