Go error: cannot use generic type without instantiation
Whenever you use a parametrized type, including anywhere a type argument is required, like in the built-in make, you must replace the type parameters in its definition with actual types. This is called instantiation. t := make(opStack[int], 0) t = append(t, 0) A generic type must be instantiated also if you use it as a … Read more