Code below doesn't compile, because of 'Cannot convert expression type 'Response' to return type 'T'
private T Test<T>() where T : SomeClass
{
return new SomeClass();
}
The error seams reasonable when you try to return subclass of class specified in constaraint, but here the type is exactly the same. What is the reason of this behaviour?