| commit | 1de6bc74d28421548ce465f96daccb22b1a77657 | [log] [tgz] |
|---|---|---|
| author | Paul Berry <paulberry@google.com> | Tue Dec 19 13:50:18 2023 +0000 |
| committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Dec 19 13:50:18 2023 +0000 |
| tree | 5d8e570f73a088ebd08d760b262d62c6648f708f | |
| parent | a52b9edb9b8b1eba61256c7a59bd61de12dc2934 [diff] |
Restore mixed-mode language tests. This change reverts https://dart-review.googlesource.com/c/sdk/+/341020. The reverted CL removed tests from `tests/language` that contained legacy code (code with a language version less than 2.12). The primary purpose of the removal was to unblock removal of legacy support from the analyzer. It seemed safe to do because legacy code isn't supported anymore, and no legacy code exists in google3 anymore. However, several of those tests exercised important "weak mode" runtime semantics of the web and VM platforms. See discussion at https://dart-review.googlesource.com/c/sdk/+/341020/comments/bce31aa1_f5392ce1 for details. This CL restores the deleted tests. Fortunately, since all the restored tests are annotated with `Requirements=nnbd-weak`, they will be skipped on the analyzer (thanks to https://dart-review.googlesource.com/c/sdk/+/342080), so restoring them no longer gets in the way of removing legacy support from the analyzer. Change-Id: Ib828be76f5c7eaeecaad0b7e7f7b0e3ff2f4bdb2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/342090 Reviewed-by: Sigmund Cherem <sigmund@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
Dart is:
Approachable: Develop with a strongly typed programming language that is consistent, concise, and offers modern language features like null safety and patterns.
Portable: Compile to ARM, x64, or RISC-V machine code for mobile, desktop, and backend. Compile to JavaScript or WebAssembly for the web.
Productive: Make changes iteratively: use hot reload to see the result instantly in your running app. Diagnose app issues using DevTools.
Dart's flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:
Dart Native: For programs targeting devices (mobile, desktop, server, and more), Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an AOT (ahead-of-time) compiler for producing machine code.
Dart Web: For programs targeting the web, Dart Web includes both a development time compiler (dartdevc) and a production time compiler (dart2js).
Dart is free and open source.
See LICENSE and PATENT_GRANT.
Visit dart.dev to learn more about the language, tools, and to find codelabs.
Browse pub.dev for more packages and libraries contributed by the community and the Dart team.
Our API reference documentation is published at api.dart.dev, based on the stable release. (We also publish docs from our beta and dev channels, as well as from the primary development branch).
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.