Skip to content
This repository has been archived by the owner on May 9, 2021. It is now read-only.

Go lint doesn't recognize type alias #335

Closed
st0012 opened this issue Sep 13, 2017 · 2 comments
Closed

Go lint doesn't recognize type alias #335

st0012 opened this issue Sep 13, 2017 · 2 comments

Comments

@st0012
Copy link

st0012 commented Sep 13, 2017

In Go 1.9, you introduced type alias which allow us to write something like

type filename = string

But currently golint seems having trouble recognize this new syntax and will show:

vm/instruction.go:13:20: expected type, found '=' (and 1 more errors)

And the linter will stop its execution.

Have you fixed this yet? Or how can I fix it?

@dominikh
Copy link
Member

You have to build golint with Go 1.9 for it to understand Go 1.9 syntax.

@st0012
Copy link
Author

st0012 commented Sep 13, 2017

@dominikh It works, thanks!

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

No branches or pull requests

2 participants