Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lost type arguments on super calls #1321

Open
jensjoha opened this issue Nov 14, 2023 · 0 comments
Open

Lost type arguments on super calls #1321

jensjoha opened this issue Nov 14, 2023 · 0 comments
Labels

Comments

@jensjoha
Copy link
Contributor

jensjoha commented Nov 14, 2023

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

@munificent munificent added the bug label Nov 15, 2023
@munificent munificent changed the title The formatter produced unexpected output Lost type arguments on super calls Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants