-
Dart VM version: 2.8.0-dev.0.0 (Wed Dec 11 10:31:10 2019 +0100) on "windows_x64"
The following test example declares a variable of the type Never in the legacy code:
``` dart
// @dart=2.4
Never …
iarkh updated
4 years ago
-
See [the log](https://dart-ci.appspot.com/log/analyzer-mac-release/analyzer-asserts-mac/9181/co19_2/LanguageFeatures/Triple-Shift/Constants_A01_t08/none).
```
--- Command "dart2analyzer" (took 16m…
-
![screen shot 2018-08-02 at 7 39 24 pm](https://user-images.githubusercontent.com/156888/43621366-df7b52f0-968b-11e8-99dc-c81db5309206.png)
A bunch of warnings from bin/cache even though analysis_o…
xster updated
4 years ago
-
Dart VM version: 2.8.0-edge.40f23c735f04433e4fc334fbd674474bd3de0f8b (Tue Jan 28 01:14:48 2020 +0000) on "linux_x64"
NNBD Spec reads that FutureOr is nullable type.
Please try to run the followi…
iarkh updated
4 years ago
-
With the newly released 2.7.0 version, running the following program through dartanalyzer will make think that the closure returns an `int?` rather than an `int`.
```
$ cat test1.dart
List test(…
-
[LSIF](https://github.com/microsoft/language-server-protocol/blob/master/indexFormat/specification.md) (Language Server Index Format) is a format for precomputing LSP data (definition, reference, and …
-
test5.dart:
```dart
class ConstClass {
const ConstClass();
}
const int constInt = 3;
const ConstClass constClass = ConstClass();
```
test4.dart:
```dart
import "test5.dart";
Class D {…
-
Given:
```dart
class C {
static void m() {}
}
main() {
C?.m();
}
```
If I run:
```sh
$ dartanalyzer --enable-experiment=non-nullable temp.dart
```
I get:
```
Analyzing /…
-
```dart
void test(var x) {
if (x is Never) {
x.toString(); // error - This expression is invalid because its target is of type Never and will never complete with a value - static_errors_A13_t…
-
NNBD [spec](https://github.com/dart-lang/language/blob/master/accepted/future-releases/nnbd/feature-specification.md#errors-and-warnings) reads
> It is an error if a class has a setter and a getter…