Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/cmd/eg: "panic: unreachable" while refactoring struct literals with unkeyed fields #10923
This occurred while refactoring cmd/internal/obj's ProgInfo tables not to use unkeyed fields.
Thanks for the minimized test case. This is indeed an eg bug, caused by unifying a wildcard with a *ast.KeyValueExpr (which has no type).
The crash in go/types API is because IsAssignable is called with a nil argument. Let's call this an undocumented implicit precondition and say that it is working as intended.
Fix pending for eg.