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

Map type is scoped weirdly #2

Open
kevinjwz opened this issue Aug 19, 2018 · 0 comments
Open

Map type is scoped weirdly #2

kevinjwz opened this issue Aug 19, 2018 · 0 comments

Comments

@kevinjwz
Copy link

type myInt int

type myStruct struct {
	aaa map[myInt]myInt	// "map" scoped as "keyword.map.go"
}

var m1 map[myInt]myInt		// "map" scoped as "entity.name.type.go"
var m2, m3 map[myInt]myInt	// "map" scoped as "keyword.map.go"

func foo(arg map[myInt]myInt) {	// "map" scoped as "keyword.map.go"
}

Also, every "myInt" except the first one is simply scoped as "source.go".

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

1 participant