Skip to content

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

@MichalStehlikCz

Description

@MichalStehlikCz
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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions