You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because the type parameter T is in scope when we encounter the anonymous type for y, a new type is created for the type of y. But each time foo/bar is called, yet a different type for y is created inside that call!
@ahejlsberg and I are leaning towards a solution that classifies such anonymous types (with type parameters in scope) as References, and give them targets. That way, isDeeplyNestedGeneric will bottom out and detect recursion.
We may need a similar mechanism in the display writer.
The text was updated successfully, but these errors were encountered:
Because the type parameter T is in scope when we encounter the anonymous type for
y
, a new type is created for the type ofy
. But each time foo/bar is called, yet a different type fory
is created inside that call!@ahejlsberg and I are leaning towards a solution that classifies such anonymous types (with type parameters in scope) as References, and give them targets. That way, isDeeplyNestedGeneric will bottom out and detect recursion.
We may need a similar mechanism in the display writer.
The text was updated successfully, but these errors were encountered: