-
-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Package import of type alias #155
base: main
Are you sure you want to change the base?
Conversation
package message | ||
|
||
import "github.com/matryer/moq/pkg/moq/testpackages/typealiaspkgimport/internal/message" | ||
|
||
type Message = message.Message |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're importing a package with the same name as the current package. I wonder if that matters. Does the issue still manifest if you do e.g.
package message | |
import "github.com/matryer/moq/pkg/moq/testpackages/typealiaspkgimport/internal/message" | |
type Message = message.Message | |
package message | |
import internalmessage "github.com/matryer/moq/pkg/moq/testpackages/typealiaspkgimport/internal/message" | |
type Message = internalmessage.Message |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have changed the name of the package where the type alias was present to alias
. The same issue is still present.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aw beans.
a66f8a5
to
9311dad
Compare
WIP PR to fix the issue reported in #153.