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
Currently, when you have a generic field in a struct that has a generic, but already concrete, type, to instantiate that struct you need to explicitly tell the compiler the type.
Currently, when you have a generic field in a struct that has a generic, but already concrete, type, to instantiate that struct you need to explicitly tell the compiler the type.
Example:
I find
Field: Field[int]{...
to be redudant, because that Field can not be of any type but an int.I propose that this would become possible:
Currently, this error out as
cannot use generic type Field[T any] without instantiation
.The text was updated successfully, but these errors were encountered: