Skip to content

Aliases aren't preserved in generated interfaces #5

@Deiz

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.

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