Type arguments must be specified
When referencing a genericContainer, T must be provided explicitly:
Default type arguments
A type parameter can have a default type:<T = xxx>. Such type parameters may be omitted at use sites.
T2 = T1 are invalid.
Not only structs, but also type aliases
The following example demonstrates a generic type aliasResponse<TResult, TError>:
Methods for generic types
Methods for generics are declared exactly as for regular structures. In this form, the compiler treatsT (unknown symbol) as a type parameter:
self parameter. Without it, a method will be static.
See Functions and methods for examples.