Skip to content

Aliases aren't preserved in generated interfaces #5

Description

@Deiz

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions