We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
go version
https://go2goplay.golang.org/
$ go version devel +ad307489d4 Tue Jun 16 05:49:35 2020 +0000
Yes.
go env
$ go env
https://go2goplay.golang.org/p/eJ9uY08prqs
package main import ( "fmt" ) type Plussable interface { type string, int } func Print(type T Plussable)(s1 T, s2 T) T { return s1 + s2 } func main() { fmt.Print(Print("Hello, ", "playground\n")) }
Hello, playground
type checking failed for main prog.go2:12:9: invalid operation: operator + not defined for s1 (variable of type T)
If I remove int from enumeration it works ok, also it works well if I remove string and add few more int*.
int
string
int*
The text was updated successfully, but these errors were encountered:
Duplicate of: #39623
Sorry, something went wrong.
No branches or pull requests
What version of Go are you using (
go version
)?https://go2goplay.golang.org/
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?https://go2goplay.golang.org/
go env
OutputWhat did you do?
https://go2goplay.golang.org/p/eJ9uY08prqs
What did you expect to see?
What did you see instead?
If I remove
int
from enumeration it works ok, also it works well if I removestring
and add few moreint*
.The text was updated successfully, but these errors were encountered: