Closed TripleDogDare closed 1 year ago
Definitely a missing feature.
The code that needs work is indeed right where the stack trace points -- around analyse.go:784
plus or minus about 10 lines.
I think the syntax that will trigger this panic is something like x, y := z, w
, or x, y = z, w
. The code we have right now only supports x, y := f(...)
The line that's attempting to cast .(*ast.CallExpr)
should be converted to a switch statement, I think, and also handle ... at least *ast.AssignStmt
. That might be the only additional thing needed (but I haven't written the code yet and am not 100% sure).
I have run across complaints about assign statements a few times.
AFAICT, the go1.18+ fix #5 resolves the panic. However, the feature is still unimplemented and returns a panic. I'm going to close this issue but will keep working on the PR.
Reproduction: https://github.com/serum-errors/go-demo-app-with-serum/pull/1
Serum analyzer built from current master branch