sdk
sdk copied to clipboard
The Dart SDK, including the VM, dart2js, core libraries, and more.
There are new test failures on https://dart-review.googlesource.com/c/sdk/+/427568 The tests ``` pkg/dtd/test/connected_app_service_test RuntimeError (expected Pass) ``` are failing on configurations ``` unittest-asserts-release-win-arm64 unittest-asserts-release-win-x64 ``` // @kenzieschmoll
https://dart-current-results.web.app/#/filter=corelib/integer_parsed&showAll These tests are in a confusing state: * They are all failing on the JavaScript backends. * Based on the test file names, it seems like they are intended...
Consider the following program: ```dart class C extends void {} void main() {} ``` With `dart` from commit 61f5e8845433088b7eca22c8f3cce4fa10acccd2 we get the following errors: ``` n062.dart:1:17: Error: Type 'void' can't...
The compile-time error message on `return e;` seems to forget to take the special `async` treatment of `return` into account in some cases: ```dart Future? test1() async { Object? o...
Dart SDK version: 2.13.0-59.0.dev (dev) (Sun Feb 21 18:06:58 2021 -0800) on "windows_x64" Here is a source code example: ``` dart typedef F = void Function(); F toF(X x) =>...
If a callable object is initialized as a `const`, it isn't treated the same as a normal function would be in const contexts. (This happens when it's initialized inline as...
Could error messages for incompatible function types be improved to show the conflicting parameters?
Hello! While debugging some tests for a code-generator I'm working on, I faced the following error: ``` The redirected constructor '_FunctionParameter2 Function(int? Function(int?, {required int b, int c}), int? Function(int?,...
The code below produces an error in a both CFE and the analyzer ```dart const c1 = (1,) == (1,); // Ok, c1 is `true` const c2 = (3.14,) ==...
A class declaration trying to import a non-existing type results in the `implements_non_class` diagnostic rather than pointing out that the type doesn't exist. ``` class A implements B { ///...
CFE produces the following errors below. ```dart extension type ET1(int v) {} extension type ET2(int v) implements Object {} test1() { ET1 et1 = ET1(42); et1 = null; // Error:...