C# generics: using class generic in where clause of method generic

Why isn’t this supported in Unity?

public class Container<T>
{
    private static class PerType<U> where U : T
    {
        public static U item;
    }

    public U Get<U>() where U : T
    {
        return PerType<U>.item;
    }

    public void Set<U>(U newItem) where U : T
    {
        PerType<U>.item = newItem;
    }
}

I’m getting this error:

error CS0305: Using the generic type
Container.PerType’ requires2’
type argument(s)

If you replace PerType<U> with Container<T>.PerType<U> on lines 10 and 15, it will at least compile. Could be that the compiler is having difficulty resolving a generic class that’s nested within another generic class.