Skip to content

Completion doesn't work in go 1.9 for type aliases #479

@esemplastic

Description

@esemplastic

iris.C 's origin type is mvc.C: https://github.com/kataras/iris/blob/master/mvc/controller.go#L39
iris.C type alias definition: https://github.com/kataras/iris/blob/master/go19.go#L148

The mvc.C looks like the following:

type C struct {
	Name string
	Ctx context.Context
}

func (c *C) BeginRequest(ctx context.Context) { c.Ctx = ctx }

But when embedding the type in other type, auto completion doesn't work:

problem1

Same for non-embedding, i.e return a struct that derives from a type alias:

problem2

Is this a bug, is it a feature request? I don't know but please try to look on this and fix that as soon as possible!

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