sdk
sdk copied to clipboard
The Dart SDK, including the VM, dart2js, core libraries, and more.
Repro: `main.dart`: ```dart import 'ext.dart' as ext; void main() { final i = 0; print(i.foo()); } ``` `ext.dart` ```dart extension E on int { int foo() => this; } ```...
### Change Intent `IOOverrides` should be marked as `base` to prevent implementation of the class. ### Justification This class is used to override behavior of certain APIs in `dart:io`. There's...
When we have a subclass (different type parameter) being used instead of the expected class on a parameter we have a bad error message compared to when we use the...
This will require the path to the Dart executable to be explicitly provided rather than falling back to using `Platform.executable` which may not work in all contexts.
Today case insensitive string comparisons are unnecessarily expensive: ```dart a.toLowerCase().compareTo(b.toLowerCase()). ``` Adding `String.equalsIgnoreCase` might be more feasible now that Dart depends on ICU. See previous requests https://github.com/dart-lang/sdk/issues/4805 and https://github.com/dart-lang/sdk/issues/13324.
### Problem Windows installs a subset of trusted root certificates lazily. Dart's certificate verification should trigger these root certificates' installation if necessary. This affects all Let's Encrypt certificates. See: 1....
Consider the following code: ```dart abstract class A { Null action({required covariant final bool? latest}); } mixin C on A {} class B extends A { Null action({final bool latest...
``` An unexpected error was encountered by the Analysis Server. Please file an issue at https://github.com/dart-lang/sdk/issues/new/choose with the following details: Internal error: Exception while using a AvoidRedundantArgumentValues to visit a...
From https://github.com/Dart-Code/Dart-Code/issues/5221: **Describe the bug** _CTRL + Click_ `part of 'file.dart';` directive doesn't work without `part` directive. **To Reproduce** Steps to reproduce the behavior: 1. Run `dart create bug` 2....
Not a `final` `external` variable in an `enum` produces an error in the analyzer but no issue in CFE. ```dart enum E { e0; external String instanceVariable; // Enums can...