testdata for fresh variables during applicability check (javac infers Object and fails)

This commit is contained in:
Anna.Kozlova
2017-04-27 15:02:32 +02:00
parent d6ee17706a
commit 541921d315
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import java.util.List;
abstract class Foo {
abstract <V> List<V> createList();
<T extends Comparable<T>> void sorted(List<T> list) { }
{
sorted(createList());
}
}