Skip to content

Unresolved structure fields in initializer #1877

@zolotov

Description

@zolotov
package main func main() { type policyTableEntry struct { Prefix string Precedence uint8 Label uint8 } type policyTable []policyTableEntry var _ = policyTable{ { Prefix: "test", // shouldn't be a error Precedence: 50, // shouldn't be a error Label: 0, // shouldn't be a error }, { Prefix: "test2", // shouldn't be a error Precedence: 40, // shouldn't be a error Label: 1, // shouldn't be a error }, } } 

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions