Code below is compiled using C# 9 compiler in Visual Studio 2019.
According to Why does VS warn me that typeof(T) is never the provided type in a generic method where the