Skip to content

Commit

Permalink
Add support for alias types in [email protected]+ (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlindsay42 authored Sep 8, 2024
1 parent 1752681 commit dd5072d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions type.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ func (typ *Type) setFromType(t types.Type, depth int, orig types.Type) {
case *types.Map:
typ.setFromComposite(t, depth, orig)
typ.setFromType(t.Key(), depth+1, orig)
case *types.Alias:
typ.setFromType(t.Underlying(), depth+1, orig)
case compositeType:
typ.setFromComposite(t, depth, orig)
default:
Expand Down

0 comments on commit dd5072d

Please sign in to comment.