Skip to content

@:generic and typedefs don't work together #5255

@waneck

Description

@waneck

The following example:

class Main {
  static function main() {
    TestImpl.test(1);
  }
}

TestImpl.hx:

typedef TestImpl<T> = TestImpl_<T>;

class TestImpl_<T> {
  @:generic public static function test<T>(arg:T){
    trace('works');
  }
}

Fails with:

Main.hx:3: characters 4-20 : Type not found : TestImpl_

On latest Haxe. If I take the typedef off, it works again. I think this is a regression

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions