sdk icon indicating copy to clipboard operation
sdk copied to clipboard

The Dart SDK, including the VM, dart2js, core libraries, and more.

Results 668 sdk issues
Sort by recently updated
recently updated
newest added

This issues tracks migrating dart2js (pkg/compiler) to null safety; see https://github.com/dart-lang/sdk/issues/49169 for the general dart-lang repo tracking meta issue.

web-dart2js
area-web

``` void f1([(int, List, Set, Map, {String n}) v = const (n: "", 1, [1], {2}, {"a": 0},)]) {} ```

area-analyzer
analyzer-spec

@jensjoha We parse it as a function typed formal parameter instead. ```dart class C { ({num n, String s}) r2; C(({int n, String s}) this.r2); } ``` parsed as ```...

area-front-end

So far I think that this code should be OK, but we don't resolve `T` to its bounds. ```dart num foo(T r) => r.$0; ``` The comment for `DartType _resolveTypeParameter`...

area-analyzer
analyzer-spec

@jensjoha ```dart void f() { foo(); } ``` parsed as ``` [(21..21): A comparison expression can't be an operand of another comparison expression., (38..38): Expected an identifier.] void f() {foo...

area-front-end

```dart class C { int? i; C() { i = 0; } C.foo(int i) { this.i = 1; } } main() { var r = (C.new, c1: C.foo); r.$0().i; r.c1(42).i;...

area-analyzer
analyzer-spec

```dart class C { final (num, {String name}) r; const C(int i, String s): r = (i + 1, name: s + "!"); } ```

area-analyzer
analyzer-spec

The following problem have been reproduced in: ``` Dart SDK version: 2.19.0-146.0.dev (dev) (Fri Aug 26 18:55:25 2022 -0700) on "windows_x64" ``` But **NOT** being able to be reproduced in:...

web-dart2js
area-web
dart2js-soundness

It seems like the `package:js` has problems interlooping simple `Future` callbacks, such as: ```dart import 'dart:async'; import 'package:js/js.dart'; @JS('myDartFunction') external set _myDartFunction(Future Function() f); @JS() external Future myDartFunction(); void main()...

web-js-interop
area-web

@jensjoha ``` typedef ({int j}) R2(); ``` I think this should be parsed as a function type alias with a record type as the return type. But it is parsed...

area-front-end