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
// a.go2 package p type S [type T] struct {} // errors_test.go2 package p import "testing" func TestFoo(t *testing.T) {}
$ go tool go2go test type checking failed for p errors_test.go2:1:1: inconsistent use of () or [] for type parameters
Workaround: Rename the test file name from errors_test.go2 to a_test.go2 will get a PASS.
errors_test.go2
a_test.go2
// a.go2 package p // a_test.go2 package p import "testing" type S [type T] struct {} func TestFoo(t *testing.T) {}
$ go tool go2go test type checking failed for p a_test.go2:1:1: inconsistent use of () or [] for type parameters
Workaround: Delete a.go2 will get a PASS.
a.go2
The text was updated successfully, but these errors were encountered:
Duplicate of #40806
Sorry, something went wrong.
This seems to have reported in #40806. I'm going to close this issue. Please let me know if you think this was closed in error.
No branches or pull requests
Example 1:
Workaround: Rename the test file name from
errors_test.go2
toa_test.go2
will get a PASS.Example 2:
Workaround: Delete
a.go2
will get a PASS.The text was updated successfully, but these errors were encountered: