Skip to content

cmd/vet: flag unkeyed struct literals when a struct has two fields of the same type #9421

Description

@josharian

Suggested in #9409.

Note that vet already flags all unkeyed composite struct literals when the type comes from a different package. This would extend checks to same-package types, but with more stringent criteria.

@bradfitz @alandonovan @shurcooL

Metadata

Metadata

Assignees

No one assigned

    Labels

    AnalysisIssues related to static analysis (vet, x/tools/go/analysis)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions