summaryrefslogtreecommitdiffstats
path: root/t/t4018/java-method-return-generic-wildcard
diff options
context:
space:
mode:
Diffstat (limited to 't/t4018/java-method-return-generic-wildcard')
-rw-r--r--t/t4018/java-method-return-generic-wildcard9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t4018/java-method-return-generic-wildcard b/t/t4018/java-method-return-generic-wildcard
new file mode 100644
index 0000000..96e9e5f
--- /dev/null
+++ b/t/t4018/java-method-return-generic-wildcard
@@ -0,0 +1,9 @@
+class MyExample {
+ public List<? extends Comparable> foo(String[] RIGHT) {
+ someMethodCall();
+ someOtherMethod()
+ .doThat();
+ // Whatever...
+ return Arrays.asList("ChangeMe");
+ }
+}