diff --git a/pkg/compiler/debug.go b/pkg/compiler/debug.go index efad1efc2..9785de401 100644 --- a/pkg/compiler/debug.go +++ b/pkg/compiler/debug.go @@ -339,7 +339,9 @@ func (c *codegen) scAndVMTypeFromType(t types.Type, exts map[string]binding.Exte return st, vt, over, et } } - + if ptr, isPtr := t.(*types.Pointer); isPtr { + t = ptr.Elem() + } var over binding.Override switch t := t.Underlying().(type) { case *types.Basic: