Skip to content
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

github.com/golang/tools API change #1

Closed
Dr-Terrible opened this issue Jan 15, 2016 · 2 comments
Closed

github.com/golang/tools API change #1

Dr-Terrible opened this issue Jan 15, 2016 · 2 comments

Comments

@Dr-Terrible
Copy link

I got this compilation error while executing go get github.com/mdempsky/maligned with Go1.5.1:

./maligned.go:50: impossible type assertion:
*"golang.org/x/tools/go/types".Struct does not implement "go/types".Type (wrong type for Underlying method)
have Underlying() "golang.org/x/tools/go/types".Type
want Underlying() "go/types".Type

github.com/golang/tools introduced an API change for go/types around commit: golang/tools@2477c0d.

@Dieterbe
Copy link

+1

@dgryski
Copy link
Contributor

dgryski commented Feb 25, 2016

Replacing the/x/tools/go/types with the standard go/types included with 1.6 makes this build again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants