Skip to content

Commit

Permalink
Merge pull request #1477 from xushiwei/def
Browse files Browse the repository at this point in the history
typesutil: def func
  • Loading branch information
xushiwei committed Oct 20, 2023
2 parents 4992fd2 + fa6ae33 commit 3a0dc5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cl/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ func loadFunc(ctx *blockCtx, recv *types.Var, d *ast.FuncDecl, genBody bool) {
fn.SetComments(d.Doc)
}
if rec := ctx.recorder(); rec != nil {
rec.Def(d.Name, fn.Obj())
rec.Def(d.Name, &fn.Func)
}
if genBody {
if body := d.Body; body != nil {
Expand Down

0 comments on commit 3a0dc5e

Please sign in to comment.