Skip to content

Completion for generics tricky case #2740

Open
@gene-pavlovsky

Description

@gene-pavlovsky

a/Foo.hx:

package a;
class Foo {
	public function new()  {}
}

b/Foo.hx:

package b;
class Foo {
	public function new()  {}
}

Bar.hx

package;
interface Bar<A, B> {
	function performBarnication(a:A, b:B);
}

Baz.hx:

package;
import a.Foo;
interface Baz<T> extends Bar<Foo, T> {}

Bazzer.hx:

package;
import b.Foo;
class Bazzer implements Baz$(EntryPoint)<Foo> {
	public function new() {}
}

Ctrl-Shift-1 > Implement interface methods

Issue: FD adds public function performBarnication(a:A, b:B) instead of using actual types.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions