-
```
~/.nnbd_trial_migration/async-master φ ~/dart/sdk/out/ReleaseX64/dart-sdk/bin/dartanalyzer --enable-experiment=non-nullable --dart-sdk=/home/mfairhurst//dart/sdk/out/ReleaseX64NNBD/dart-sdk lib/ …
-
Dart VM version: 2.7.0-dev.2.1 (Mon Dec 2 20:10:59 2019 +0100) on "windows_x64"
The following test example tries to assign `null` values to non-nullable variables (if nnbd is enabled):
``` dart
c…
iarkh updated
4 years ago
-
According to the NNBD [specification](https://github.com/dart-lang/language/blob/master/accepted/future-releases/nnbd/feature-specification.md#errors-and-warnings)
> It is an error if a mixin decla…
-
Recently all the packages are getting a lot of health suggestions which results in a low health score.
The most common problem is the "Prefer single quotes where they won't require escape sequences…
-
Cf. https://github.com/dart-lang/sdk/issues/41218. A compile-time error is [specified](https://github.com/dart-lang/language/blob/35ce3873ec46480b318020828c0d9553e6e595ac/specification/dartLangSpec.te…
-
Here is an example where a variable is used but the analyzer thinks it is not used:
```dart
class Foo {
Foo operator |(Foo _) {
return this;
}
}
main() {
var f = new Foo();
f |= n…
-
NNBD [specification](https://github.com/dart-lang/language/blob/master/accepted/future-releases/nnbd/feature-specification.md#errors-and-warnings) reads
> It is an error if the body of a method, fu…
-
Consider the following code
```dart
enum E {
one,
two,
three
}
main() {
E? e = E.three;
switch (e) { // error - Type 'E?' of the switch expression isn't assignable to the type '…
-
According to the grammar fragments in the language specification (v. 1.11), we can derive as follows (where `A` stands for a construct that we need not worry about because it may be omitted or it is o…
-
Dart VM version: 2.8.0-edge.40f23c735f04433e4fc334fbd674474bd3de0f8b (Tue Jan 28 01:14:48 2020 +0000) on "linux_x64"
The following code source brings together otherwise incompatible member signatu…
iarkh updated
4 years ago