strict-inference doesn't complain about example given in its doc #45371
Labels
area-devexp
For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
devexp-warning
Issues with the analyzer's Warning codes
P3
A lower priority bug or feature request
type-documentation
A request to add or improve documentation
According to [1] the following should report an inference failure when
strict-inference
is turned on: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
.)[1] https://github.com/dart-lang/language/blob/master/resources/type-system/strict-inference.md#example-under-constrained-generic-method-invocations
/cc @srawlins
The text was updated successfully, but these errors were encountered: