- Notifications
You must be signed in to change notification settings - Fork 567
Closed
Description
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 }, } }