mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
switch tests on new inference
(cherry picked from commit d2cbf3f2833104c3a0381059b0d6ef8ac0b3c94c)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import java.util.*;
|
||||
public class TestInfer
|
||||
{
|
||||
static <V, T extends V> List<V> singleton(T item)
|
||||
{
|
||||
ArrayList<V> list = new ArrayList<>();
|
||||
list.add(item);
|
||||
return list;
|
||||
}
|
||||
|
||||
public List<Number> test()
|
||||
{
|
||||
List<Number> ln = singleton(new Long(1));
|
||||
|
||||
return singleton(new Long(2));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user