3rf / codecoroner

tool for detecting unused functions and variables in Go source code
http://kyleerf.com
141 stars 22 forks source link

Does not compile on Golang 1.5 and 1.6 #9

Closed vornet closed 8 years ago

vornet commented 8 years ago

go get github.com/3rf/codecoroner

github.com/3rf/codecoroner/unused

work/src/github.com/3rf/codecoroner/unused/idents.go:56: impossible type switch case: kind (type "go/types".Object) cannot have dynamic type "golang.org/x/tools/go/types".Func (wrong type for Parent method) have Parent() "golang.org/x/tools/go/types".Scope want Parent() "go/types".Scope work/src/github.com/3rf/codecoroner/unused/idents.go:79: impossible type switch case: kind (type "go/types".Object) cannot have dynamic type "golang.org/x/tools/go/types".Func (wrong type for Parent method) have Parent() "golang.org/x/tools/go/types".Scope want Parent() "go/types".Scope

3rf commented 8 years ago

This is fixed in master!