-
Analyzer Feedback from IntelliJ
## Version information
- `IDEA AI-191.8026.42.35.6010548`
- `2.7.0-dev.2.1`
- `AI-191.8026.42.35.6010548, JRE 1.8.0_202-release-1483-b49-5587405x64 JetBrains s.…
-
Given the following code:
test6.dart:
```dart
class S {}
```
test5.dart:
```dart
// @dart = 2.5
import "test6.dart";
abstract class B extends S {}
```
test4.dart:
```dart
import "te…
-
I am having the below-unused field and I need to know what is the lint that I need to use in **analysis_option.yaml** file to detect the unused field.
`final int _padding = 5; `
I know using *…
-
Using `analyzer 0.39.4` and `linter 0.1.109` I am getting this stacktrace when trying to run `pub global run linter .`:
```
~/Projects/dart/sdk/pkg/analyzer remotes/origin/HEAD
λ pub global run l…
-
Run the following code in dartanalyzer with --enable-experiment=non-nullable
```dart
class A {
foo() {}
}
main() {
A? a = null;
a = new A();
if (a != null) {
a.foo(); //…
-
According to the recent change in NNBD [specification](https://github.com/dart-lang/language/blob/master/accepted/future-releases/nnbd/feature-specification.md#static-errors)
> It is an error for a…
-
Dart VM version: 2.8.0-edge.40f23c735f04433e4fc334fbd674474bd3de0f8b (Tue Jan 28 01:14:48 2020 +0000) on "linux_x64"
This issue is similar with #40453, but dart and analyzer behave in the different…
iarkh updated
4 years ago
-
Dart VM version: 2.8.0-edge.40f23c735f04433e4fc334fbd674474bd3de0f8b (Tue Jan 28 01:14:48 2020 +0000) on "linux_x64"
The following source code declares classes `X1` and `X2` which inherit classes w…
iarkh updated
4 years ago
-
Analyzing the following code using `dartanalyzer example.dart` crashes the analyzer:
```dart
void test(T value) {
if (value is num) {
if (value is int) {}
}
}
```
Error message: "B…
-
Running `dartanalyzer` on the following code:
```dart
abstract class Foo {}
final f = Foo();
```
generates:
> error • Abstract classes can't be created with a 'new' expression at foo.dar…