Skip to content

Generated interfaces with references to other types in the same source are missing package identifier #12

@palsivertsen

Description

@palsivertsen

Given this example package:

package a

type Dummy struct{}
type A struct{}

func (a *A) Dummy() *Dummy { return nil }

When running: ifacemaker -f a/a.go -s A -i Aer -p b -o b/b.go I expect the file b/b.go to look like this:

package b

import "a"

type Aer interface {
	Dummy() *a.Dummy
}

But I get a file like this:

package b

type Aer interface {
	Dummy() *Dummy
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions