The compiler is able to infer the type parameters based on the method arguments you pass in; it cannot infer the type parameters solely from a constraint or return value.
英
美
- 编译器能够根据传入的方法参数推断类型参数;它无法仅从约束或返回值推断类型参数。
