-
Notifications
You must be signed in to change notification settings - Fork 18k
template: golang can not get template type #70487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
you can only type switch on interfaces, once instantiated, K is a concrete type not an interface. Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only. For questions please refer to https://github.com/golang/go/wiki/Questions |
Duplicate of #45380 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Go version
1.23 windows amd64
Output of
go env
in your module/workspace:What did you do?
try get type but code can not compile.
What did you see happen?
compile it get error.
What did you expect to see?
make compile pass through.
The text was updated successfully, but these errors were encountered: