mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 03:41:34 +00:00
compiler: unwrap pointers for debug types
We have almost no difference between Type and *Type.
This commit is contained in:
parent
d7fafea328
commit
2bcf3a4ad5
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue