-
Dart SDK Version: 2.0.0-dev.55.0
OS: Windows 10
The following code sample assign a parametrized function result to the row variable:
``` dart
class A {}
X testme() { return null; }
main() {
…
iarkh updated
6 years ago
-
The specification says (section 18.2):
"For each entry mapping key k to declaration d in NSn an entry mapping
k to d is added to the exported namespace of L unless a top-level declaration
with th…
-
For example:
```dart
double foo() => 1;
main() {
print(foo() as int);
}
```
With null safety this code always throws an error and dartanalyzer can figure this out using static types and…
-
Consider the following example:
```dart
main() {
final int x = 0;
for (x in [1, 2]) {
print(x);
}
}
```
According to the language specification 17.6.2 For-in, this corresponds to th…
-
Dart SDK Version: 2.0.0-dev.55.0
OS: Windows 10
Sample code below declares a [typedef] with parameter which extends [void]. It causes a lot of compiler errors with dartanalyzer and passes without …
iarkh updated
6 years ago
-
I checked in a CL that caused the analyzer-$PLATFORM-release-be bots to fail on all platforms, but continued to pass on analyzer-$PLATFORM-release-strong-be.
The error message showed the followin…
-
According to the https://github.com/dart-lang/language/issues/734#issuecomment-565487654 calling a `call` method via `super` call is an error for now. But analyzer still accepts the following code
``…
-
They pollute Dart code. Example:
This:
```
import {
CONST, FINAL, ABSTRACT
} from 'angular2/src/facade/lang';
@ABSTRACT()
class Blah {
@FINAL()
i;
@CONST()
constructor(a) {
this.i = …
-
Analyzer reports a wrong error message in case when required formal parameter has a default value
```dart
void foo(int i = 42) {} // error - Named parameters must be enclosed in curly braces ('{' …
-
```dart
class C {
int value;
C() : value = 0 {}
init() {
value = 0;
}
int get id => value;
void set id(int v) {
this.value = v;
}
}
extension Ext on C {
int get …