Hi Dart team!
This issue reproduces in Dart
2.4.1, as well as what’s currently on Dartpad, which I would assume is the latest stable release (
We ran into a pretty vexing issue this week. We’re getting this traceback:
What’s very interesting is that calling
combineNested with a single cascaded invocation triggers the failure, but adding a second cascaded invocation obviates the issue! Additionally, when the multiple cascaded invocations are present, the single cascade magically works!
As far as we can tell, the typing is entirely valid for that code. That also works in ddc + dart2js -O3, but not O2 or O1. I would assume that dartpad uses O1, is that correct?