summaryrefslogtreecommitdiff
path: root/t/t4018/java-method-return-generic-bounded
diff options
context:
space:
mode:
Diffstat (limited to 't/t4018/java-method-return-generic-bounded')
-rw-r--r--t/t4018/java-method-return-generic-bounded9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t4018/java-method-return-generic-bounded b/t/t4018/java-method-return-generic-bounded
new file mode 100644
index 0000000000..66dd78c379
--- /dev/null
+++ b/t/t4018/java-method-return-generic-bounded
@@ -0,0 +1,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");
+ }
+}