Skip to content

Commit

Permalink
Merge pull request #344 from xushiwei/ov
Browse files Browse the repository at this point in the history
matchFuncCall fix: return err instead of panic
  • Loading branch information
xushiwei committed Jan 22, 2024
2 parents a954f8e + 219e01f commit d0400bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ retry:
if (flags & instrFlagGopxFunc) == 0 {
rt, err := inferFunc(pkg, fn, t, nil, args, flags)
if err != nil {
pkg.cb.panicCodeError(getSrcPos(fn.Src), err.Error())
return nil, pkg.cb.newCodeError(getSrcPos(fn.Src), err.Error())
}
sig = rt.(*types.Signature)
if debugMatch {
Expand Down

0 comments on commit d0400bc

Please sign in to comment.