mirror of
https://github.com/dart-lang/sdk
synced 2024-09-20 04:11:30 +00:00
372537f1e4
The first code is HintCode.INFERENCE_FAILURE_ON_UNINITIALIZED_VARIABLE: ```dart var a; // Hint: The type of v1 cannot be inferred without a type or initializer dynamic b; // OK var c = 7; // OK ``` This is currently only enabled via an analysis options file: ```yaml analyzer: language: strict-inference: true ``` I could add it as a flag as well, but to start using this internally at Google, we only need support in the analysis options file. Bug: https://github.com/dart-lang/sdk/issues/33749 Change-Id: Id2a6afa7c3d724b44c20576c7f48869abcf4255c Reviewed-on: https://dart-review.googlesource.com/c/93700 Commit-Queue: Samuel Rawlins <srawlins@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> |
||
---|---|---|
.. | ||
context | ||
dart | ||
error | ||
exception | ||
file_system | ||
instrumentation | ||
plugin | ||
source | ||
src | ||
task | ||
analyzer.dart |