dart-sdk/tests
Lasse R.H. Nielsen bdbd3c0602 Make unawaited accept a nullable argument.
The associated `unawaited_futures` lint triggers for expressions
of type `Future?` as well, so we should allow the workaround to
handle such expressions.

This change makes a static function more permissive, and is not expected
to be breaking in any way.
(It does mean that you need Dart 2.15.0 to use the function with
nullable arguments. I've changed the annotation to say `@Since("2.15")`.
That means anyone using a 2.15 SDK should assume that they need a 2.15
SDK to use it, and someone using a 2.14 SDK will not see the argument
as nullable. If anyone uses `@Since` annotations for anything at all.)

Change-Id: Ib2da4b353104cc88a834208a6ebd788ae55b4544
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/214406
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
2021-09-27 11:58:16 +00:00
..
co19 [co19_2] Status files updated 2021-09-27 10:27:42 +00:00
co19_2 [co19_2] Status files updated 2021-09-27 10:27:42 +00:00
corelib Fix bug in Duration.toString(). 2021-09-10 14:58:47 +00:00
corelib_2 Fix bug in Duration.toString(). 2021-09-10 14:58:47 +00:00
dartdevc [ddc] Unify pkg:js types and allow subtyping between them 2021-07-30 00:33:54 +00:00
dartdevc_2 [ddc] Unify pkg:js types and allow subtyping between them 2021-07-30 00:33:54 +00:00
ffi [vm/ffi] Privatizes dart:nativewrappers' getNativeField(..) 2021-09-24 13:13:55 +00:00
ffi_2 [vm/ffi] Adds param number in trampoline null error 2021-09-04 07:22:03 +00:00
language Add test about type parameter as constant 2021-09-23 07:46:24 +00:00
language_2 Add extension name getter on Enum. 2021-09-22 14:20:16 +00:00
lib Make unawaited accept a nullable argument. 2021-09-27 11:58:16 +00:00
lib_2 Make unawaited accept a nullable argument. 2021-09-27 11:58:16 +00:00
modular [ddc] Fix private class exposed by typedef 2021-04-05 18:54:56 +00:00
standalone [gardening] Remove dead print and instead print exception with failure message 2021-09-24 14:07:16 +00:00
standalone_2 [gardening] Remove dead print and instead print exception with failure message 2021-09-24 14:07:16 +00:00
web [dart2js] Improve type inference for createSentinel. 2021-09-13 21:59:20 +00:00
web_2 Remove obsolete internal dart2js annotations 2021-08-04 23:27:18 +00:00
legacy_status_dart2js.csv [dart2js] Remove obsolete unittests. 2020-05-12 17:16:39 +00:00
README.md Update tests/README to point to new doc. 2019-08-06 22:19:42 +00:00

This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.