Skip to content

Commit d155384

Browse files
committed
refactor(rlp/rlpgen): use Unalias instead of Rhs
1 parent 96a991a commit d155384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rlp/rlpgen/gen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ func (bctx *buildContext) makeOp(name *types.Named, typ types.Type, tags rlpstru
725725
}
726726
return nil, fmt.Errorf("unhandled array type: %v", typ)
727727
case *types.Alias:
728-
return bctx.makeOp(name, typ.Rhs(), tags)
728+
return bctx.makeOp(name, types.Unalias(typ), tags)
729729
default:
730730
return nil, fmt.Errorf("unhandled type: %v", typ)
731731
}

0 commit comments

Comments
 (0)