coverage reports with forceCompile are broken in Dart 2 mode #32282
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
front-end-kernel
legacy-area-front-end
Legacy: Use area-dart-model instead.
P0
A serious issue requiring immediate resolution
Milestone
Underlying issue is that compiler breaks when it tries to force-compile redirecting factory because they have a "special" representation instead of a real body.
Note: this completely breaks Flutter
--coverage
flag.There is a workaround we can apply to temporary unbreak things - we can replace
UNREACHABLE()
withReportError
. But I am hesitant to apply it because it just hides underlying issue and might lead to other confusing situations down the road.Add a test case testing this:
Run it
The text was updated successfully, but these errors were encountered: