-
Flow analysis [specification](https://github.com/dart-lang/language/blob/master/resources/type-system/flow-analysis.md#promotion) reads
> We say that a variable x is promotable via initialization g…
-
Cf. https://github.com/dart-lang/sdk/issues/40722#issuecomment-656808700 which is directly aimed at raw type annotations, and https://github.com/dart-lang/linter/issues/1886 which may be interpreted a…
-
It is definitely an error, but maybe not so nice error recovery.
Analyzer reports:
```
error: Expected to find '}'. (expected_token at [test] bin/test.dart:17)
error: Undefined class 'required'.…
-
The following code produces an error in analyzer with --enable-experiment=non-nullable
```dart
class A {
void test() {}
int operator[](int index) => 0;
}
main() {
A? a = null;
a?.tes…
-
Between ee15c8eb689791f6777eb3f6b0a1e9c58ff0671b and a4c69b772950c65cd73e6a84e550cc9f46083504 analyzer seems to have implemented analysis rules that flag existing Flutter framework codebase erroneous:…
-
`T` is not declared.
```
--- Command "dart2analyzer" (took 81ms):
DART_CONFIGURATION=ReleaseX64NNBD out/ReleaseX64NNBD/dart-sdk/bin/dartanalyzer --enable-experiment=non-nullable --ignore-unrecogn…
-
According to the [promotion rules](https://github.com/dart-lang/language/blob/master/resources/type-system/flow-analysis.md#promotion), `promotable via type test` cannot be applied, because `S
-
`X` is undefined.
```
--- Command "dart2analyzer" (took 123ms):
DART_CONFIGURATION=ReleaseX64NNBD out/ReleaseX64NNBD/dart-sdk/bin/dartanalyzer --enable-experiment=non-nullable --ignore-unrecogniz…
-
The type `double` does not have primitive `==` operator.
```
--- Command "dart2analyzer" (took 49ms):
DART_CONFIGURATION=ReleaseX64NNBD out/ReleaseX64NNBD/dart-sdk/bin/dartanalyzer --enable-exper…
-
I was working with no errors in Dart Analyzer for months. Today I updated Dart Code and Flutter to the latest version, now Dart Analyzer crashes in a matter of minutes with `Cannot call write after a …