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
$ go version go version devel +12c2128b9e Fri Aug 21 00:12:31 2020 +0000 windows/amd64
n/a
go env
https://go2goplay.golang.org/p/HClUuUkAS-m
Successful compilation. MyInt satisfies both type lists.
MyInt
type checking failed for main prog.go2:27:5: MyInt does not satisfy Sum (MyInt or int not found in ⊥)
The text was updated successfully, but these errors were encountered:
I believe this is working as intended. Embedding two interfaces with type lists gives you the intersection of the type lists, which in this example is the empty set. See https://go.googlesource.com/proposal/+/refs/heads/master/design/go2draft-type-parameters.md#type-lists-in-embedded-constraints .
Sorry, something went wrong.
No branches or pull requests
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
n/a
What operating system and processor architecture are you using (
go env
)?What did you do?
https://go2goplay.golang.org/p/HClUuUkAS-m
What did you expect to see?
Successful compilation.
MyInt
satisfies both type lists.What did you see instead?
The text was updated successfully, but these errors were encountered: