You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, marking this as Go1.5Maybe and cc'ing @griesemer, since it is a panic: unreachable from within go/types via exported APIs. I suspect that the change in go/types is probably just docs and/or a different panic message.
josharian
changed the title
x/tools/cmd/eg: panic: unreachable refactoring struct literals with unkeyed fields
x/tools/cmd/eg: "panic: unreachable" while refactoring struct literals with unkeyed fields
May 22, 2015
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.
This occurred while refactoring cmd/internal/obj's ProgInfo tables not to use unkeyed fields.
$GOPATH/src/egbug/x.go:
Template:
eg output:
The text was updated successfully, but these errors were encountered: