sdk
sdk copied to clipboard
The Dart SDK, including the VM, dart2js, core libraries, and more.
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.
``` void f1([(int, List, Set, Map, {String n}) v = const (n: "", 1, [1], {2}, {"a": 0},)]) {} ```
@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 ```...
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`...
@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...
```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;...
```dart class C { final (num, {String name}) r; const C(int i, String s): r = (i + 1, name: s + "!"); } ```
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:...
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()...
@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...