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

type.argument.inference.crashed with nested bounded generic parameter #6886

Closed
MichalStehlikCz opened this issue Nov 8, 2024 · 0 comments · Fixed by #6894
Closed

type.argument.inference.crashed with nested bounded generic parameter #6886

MichalStehlikCz opened this issue Nov 8, 2024 · 0 comments · Fixed by #6894
Assignees

Comments

@MichalStehlikCz
Copy link
Contributor

abstract class Test {

  abstract <T> List<T> run(Supplier<? extends List<? extends T>> param);

  List<Void> call(List<Void> data) {
    return run(() -> data);
  }
}

fails with

java: [type.argument.inference.crashed] Type argument inference crashed for Test.run
  error: An exception occurred:  False bound for: Constraint: capture#02 extends Void <: Void Result: FALSE

after upgrade from 3.46.0 to 3.48.2

Compilation should pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants