Open
Description
According to [1] the following should report an inference failure when strict-inference
is turned on:
void main() {
var a = [1, 2, 3].fold(true, (s, x) => s + x);
}
However, in an example project with the analysis_options.yaml file posted below no infernece issue is reported on Dart 2.13.0 (build 2.13.0-143.0.dev). (The only issue reported is an unused variable a
.)
analyzer:
language:
strict-inference: true
/cc @srawlins