CFE inference bug: redirecting const factory constructors #33813
Labels
area-front-end
Use area-front-end for front end / CFE / kernel format related issues.
customer-bazel
customer-dart2js
P1
A high priority bug; for example, a single project is unusable or has many test failures
Milestone
When using redirecting factory const constructors, inferred type-parameters seem incorrect.
Consider these 2 programs v1.dart:
and v2.dart:
In v1.dart, we print
_Y<Null>
, in v2.dart this produces an error because we try to create_Y<B.T>
.You can reproduce this on the VM (where you get an error in v2) and dart2js (where you get a compiler crash because we didn't expect such input).
Note this was working correctly in -dev.67. I'm seeing this issue in internal customer apps using the latest code in master. Their code contains uses of
Stream.empty
, similar to the code below:@mit-mit could you help us triage?
The text was updated successfully, but these errors were encountered: