Skip to content

Commit dd5072d

Browse files
authored
Add support for alias types in [email protected]+ (#48)
1 parent 1752681 commit dd5072d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

type.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ func (typ *Type) setFromType(t types.Type, depth int, orig types.Type) {
6565
case *types.Map:
6666
typ.setFromComposite(t, depth, orig)
6767
typ.setFromType(t.Key(), depth+1, orig)
68+
case *types.Alias:
69+
typ.setFromType(t.Underlying(), depth+1, orig)
6870
case compositeType:
6971
typ.setFromComposite(t, depth, orig)
7072
default:

0 commit comments

Comments
 (0)