From c474abd2bddba55cc472277a81073b7e323e3370 Mon Sep 17 00:00:00 2001 From: Till Schnell Date: Thu, 8 Apr 2021 18:01:52 +0200 Subject: [PATCH] add test for nested types --- src/test/resources/inferWildcards/TestClassWildcards.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/resources/inferWildcards/TestClassWildcards.java b/src/test/resources/inferWildcards/TestClassWildcards.java index d413f030..35be3f57 100644 --- a/src/test/resources/inferWildcards/TestClassWildcards.java +++ b/src/test/resources/inferWildcards/TestClassWildcards.java @@ -1,4 +1,5 @@ import java.util.ArrayList; +import java.util.Collection; import java.util.List; import java.lang.String; import java.lang.Object; @@ -38,4 +39,9 @@ class TestClassWildcards input.add(string); return listOfObjects; } + + public List> test3(List> input){ + List listOfObjects = input; + return listOfObjects; + } } \ No newline at end of file