livebud / bud

The Full-Stack Web Framework for Go
MIT License
5.57k stars 180 forks source link

package/parser: looking up definitions now traverse through aliases #355

Closed matthewmueller closed 1 year ago

matthewmueller commented 1 year ago

This PR fixes a bug in dependency injection by resolving type aliases to their concrete declarations.

For example,

type B string
type A = B

Now when you get the definition of A, you'll get type string, not the A alias type.