Skip to content
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

Aliases aren't preserved in generated interfaces #5

Open
Deiz opened this issue Oct 10, 2023 · 0 comments
Open

Aliases aren't preserved in generated interfaces #5

Deiz opened this issue Oct 10, 2023 · 0 comments

Comments

@Deiz
Copy link
Owner

Deiz commented Oct 10, 2023

This has come up when different files in the same package import different packages that share a name.

Go has no problem with this:

import (
	"fmt"
	abc "fmt"
	bcd "fmt"
)

func main() {
	fmt.Println("A")
	abc.Println("B")
	bcd.Println("C")
}

So interfacegen should aim to preserve aliases, otherwise it will generate broken interfaces that don't compile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant