Skip to content

Fasta: Missing inference of type arguments on redirecting factories #34714

@dhil

Description

@dhil

In redirecting factories, type arguments are not inferred on redirectees. For example, the current implementation does not infer T on B below

class A<T> {
  factory A() = B; // Should infer B<T>.
}

class B<T> implements A<T> {
  B();
}

Instead it "infers" B<dynamic> (it doesn't really infer, hence the quotes, c.f. the responsible code).

Metadata

Metadata

Labels

legacy-area-front-endLegacy: Use area-dart-model instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions