diff --git a/ssa/func.go b/ssa/func.go index c7764c27..ce8eeaaa 100644 --- a/ssa/func.go +++ b/ssa/func.go @@ -430,7 +430,7 @@ func (f *Function) lookup(obj types.Object, escaping bool) Value { } outer := f.Enclosing.lookup(obj, true) // escaping v := &Capture{ - name: outer.Name(), + name: obj.Name(), typ: outer.Type(), pos: outer.Pos(), outer: outer,