aboutsummaryrefslogtreecommitdiffstats
path: root/javaparser-symbol-solver-testing/src/test/resources/GenericCollectionWithExtension.java.txt
diff options
context:
space:
mode:
Diffstat (limited to 'javaparser-symbol-solver-testing/src/test/resources/GenericCollectionWithExtension.java.txt')
-rw-r--r--javaparser-symbol-solver-testing/src/test/resources/GenericCollectionWithExtension.java.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/javaparser-symbol-solver-testing/src/test/resources/GenericCollectionWithExtension.java.txt b/javaparser-symbol-solver-testing/src/test/resources/GenericCollectionWithExtension.java.txt
new file mode 100644
index 000000000..22261ca43
--- /dev/null
+++ b/javaparser-symbol-solver-testing/src/test/resources/GenericCollectionWithExtension.java.txt
@@ -0,0 +1,21 @@
+class Node {
+}
+
+class Comment extends Node {
+}
+
+class Foo {
+
+ public <T> void foo(java.util.List<T> t1, java.util.List<T> t2) {
+ }
+
+ public Object bar() {
+ Node node;
+ java.util.List<Node> children = new java.util.LinkedList<Node>();
+ java.util.List<Comment> commentsToAttribute;
+
+ foo(children, commentsToAttribute);
+
+ return children.addAll(commentsToAttribute);
+ }
+}