Getting parent's parametric types parameter

The keyword function is run in a different scope, so It doesn’t “see” the T. You need to use a specific type in the default value, on the right hand side of the =.\

To get around that, define a constructor with default value as a kw arg.

1 Like