sdk
sdk copied to clipboard
The Dart SDK, including the VM, dart2js, core libraries, and more.
``` $ cat t.dart main() { print([ 1, 2, 3, ]); } $ ./fasta compile t.dart t.dart:2:33: Warning: Too many type arguments on List literal. print([ ^ ``` The location...
Steps: 1. Create new Dart project 2. Add `very_good_analysis` to dependencies (can be dev) 3. Swap the content of the `analysis_option.yaml` with: ```yaml include: package:very_good_analysis/analysis_options.7.0.0.yaml linter: rules: prefer_relative_imports: true ```...
The analysis server defines [constants representing fix kinds](https://github.com/dart-lang/sdk/blob/main/pkg/analysis_server/lib/src/services/correction/fix.dart). Those constants have a priority associated with them, represented as an integer. There are also [constants representing those priorities](https://github.com/dart-lang/sdk/blob/main/pkg/analysis_server_plugin/lib/edit/dart/dart_fix_kind_priority.dart), but those are...
Take this code: ```dart final int int = 7; void main() { final num num = 7; } ``` This results in a strange error: ``` error • int isn't...
```dart void foo({int i}, {String j}) {} void bar({int i}, [String j]) {} ``` If to run the code above in analyzer 1.19.1, then output is ``` [error] Cannot have...
### **Description:** After upgrading to **Flutter 3.32.1**, hot reload stopped working in one of my web apps when launched using a custom configuration. I’ve tested with both **Android Studio** and...
This issues relates to the `dart fix` CLI command. Dart fix supports supplying specific issue codes, to restrict the issues that the tool fixes and applies. This works for dart...
The following flaky crash happened on `vm-aot-win-debug-arm64`: ``` /===========================================================================\ | service/dev_fs_http_put_test/service broke (Pass -> Crash, expected Pass) | \===========================================================================/ --- Command "vm_compile_to_kernel" (took 05.000785s): set DART_CONFIGURATION=DebugARM64 & set DART_SUPPRESS_WER=1 &...
Right now one can only kill a single process using dart:io. Either through Process.kill on a Process instance or by using the static Process.killPID. In some situations killing a process...
Repro: ```dart // Items sealed class Foo { const Foo(); } final class Bar extends Foo { const Bar(); } final class Baz extends Foo { const Baz(); } //...