-
this implies we need angular.dart file which looks something like this:
```
library angular.dom.main;
export "annotations/directive.dart";
export "annotations/component.dart";
export "annotations/pr…
-
According to the NNBD [specification](https://github.com/dart-lang/language/blob/master/accepted/future-releases/nnbd/feature-specification.md#static-errors)
> It is an error for the initializer ex…
-
The code is
```dart
typedef void Foo({int i = 42});
```
Analyzer output is
```
error - Default parameter values aren't allowed in typedefs. - syntax_A05_t02.dart:1:1 - default_value_in_functio…
-
Consider:
```dart
class A {
method(int? n) {}
}
class B extends A {
method(int n) {}
}
```
`method()` in B is an invalid override because the parameter is not nullable and should be…
-
Given the following code:
```dart
Future _cachedFuture;
Future foo(String arg) async {
if (arg.isEmpty) {
return;
}
if (_cachedFuture != null) {
return _cachedFuture;
}
…
-
On bleeding edge at commit c853f70feadee8707475d78b14ed9cc89ebf71dd. If I have:
**test.dart:**
```dart
import 'reexport_core.dart' as core;
```
**reexport_core.dart:**
```dart
export 'd…
-
**Describe the rule you'd like to see implemented**
I want to recognize an unused variable and import as an error.
https://dart.dev/guides/language/analysis-options
**Examples**
I wrote the …
-
```dart
class A {
int? i = 1;
}
class C extends A {
int i = 2; // error - 'C.i=' ('void Function(int)') isn't a valid override of 'A.i=' ('void Function(int)'). - override_checking_A02_FIELD_…
-
Take this program:
```dart
bool b = false;
int i = b ? 123 : null;
int test() {
return b ? 123 : null;
}
```
And analyze it with:
```sh
dartanalyzer --enable-experiment=non-nullabl…
-
Once https://github.com/angular/ts2dart/issues/168 is fixed, we can remove the special case in [dartanalyzer.js#shouldIgnore](https://github.com/angular/angular/blob/master/tools/build/dartanalyzer.js…