mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
testdata for fresh variables during applicability check (javac infers Object and fails)
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user