dart_style icon indicating copy to clipboard operation
dart_style copied to clipboard

Lost type arguments on super calls

Open jensjoha opened this issue 1 year ago • 0 comments

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>)

jensjoha avatar Nov 14 '23 09:11 jensjoha