privatestatic List<T> DoubleItem<T>(T item)
{
returnnew List<T> { item, item };
}
static void foo()
{
var d = DoubleItem(|);// type "new<space>" here, T is suggested, which cannot be resolved afterwards
}
Description
privatestatic List<T> DoubleItem<T>(T item)
{
returnnew List<T> { item, item };
}
static void foo()
{
var d = DoubleItem(|);// type "new<space>" here, T is suggested, which cannot be resolved afterwards
}