Closed
Description
When defining generic class functions whose lower bounds depend on class-level generics, the lower bound types will resolve/expand based on the value of those generics. For example, consider this (very lengthy) string literal union:
However, if a similar function is defined with an arrow function, the lower bound does not expand and is instead broadened to just string
:
The type constraints are identical between these two functions; they differ only in that the former is a class method and the latter is an arrow function.
It would be really nice if the rendering were consistent here.