Skip to content

Map type is scoped weirdly #2

@kevinjwz

Description

@kevinjwz
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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions