Skip to content

Lost type arguments on super calls #1321

@jensjoha

Description

@jensjoha
The formatter produced unexpected output. Input was:
class A {
  A(int foo<T>(int a));
}
class B extends A {
  B.sub1(int super.bar1<T1>(int a1),);
  B.sub2(int super.bar2<T2>(int a2),);
}
main() {}

Which formatted to:

class A {
  A(int foo<T>(int a));
}

class B extends A {
  B.sub1(
    int super.bar1(int a1),
  );
  B.sub2(
    int super.bar2(int a2),
  );
}

main() {}

(So formatting throws away the <T1> and <T2>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions