preserve captured wildcards during non wildcard parameterization (IDEA-132690)

This commit is contained in:
Anna Kozlova
2015-09-01 16:06:17 +03:00
parent 21e2fd41c0
commit ed06d3ff72
4 changed files with 28 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
import java.util.concurrent.CompletableFuture;
interface Test {
CompletableFuture<?> doWork();
}
class Worker {
Test test;
public void stuff() {
test.doWork()
.exceptionally(t -> null);
}
}