Skip to content

Commit

Permalink
Merge pull request #138 from goplus/global
Browse files Browse the repository at this point in the history
repl: fix GetSymbol check pkg.Var
  • Loading branch information
visualfc authored Jul 18, 2022
2 parents 9c86e70 + 8fdbbfc commit 7e1b5eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interp.go
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ func (i *Interp) GetSymbol(key string) (m ssa.Member, v interface{}, ok bool) {
case *ssa.NamedConst:
v = p.Value.Value
case *ssa.Global:
v = i.globals[p]
v, ok = globalToValue(i, p)
case *ssa.Function:
typ := i.toType(p.Type())
v = i.makeFunction(typ, i.funcs[p], nil)
Expand Down

0 comments on commit 7e1b5eb

Please sign in to comment.