Default Type Parameters
A type parameter may declare a default (<T = string>) used when no argument is supplied and none can be inferred, making trailing parameters optional at instantiation. Defaults must satisfy the constraint and may reference earlier type parameters.
This Concept is waiting for its first lesson!
A type parameter may declare a default (<T = string>) used when no argument is supplied and none can be inferred, making trailing parameters optional at instantiation. Defaults must satisfy the constraint and may reference earlier type parameters.
Are you a teacher? Sign in to start contributing.
Sign In