When calling a generic method, $TArgs should be propagated always as a first argument, but it doesn't if the methods are static and defined in different static class.
Source Code:
public static class BugUtils1
{
public static IEnumerable<T> TestGenerics<T>(IEnumerable<T> source)
{
return BugUtils2.TestGenerics<T>(source);
}
}
public static class BugUtils2
{
public static IEnumerable<T> TestGenerics<T>(IEnumerable<T> source)
{
return BugUtils1.TestGenerics<T>(source);
}
}
When calling a generic method,
$TArgs
should be propagated always as a first argument, but it doesn't if the methods arestatic
and defined in differentstatic class
.Source Code:
Transpiled:
Expected Output: