dart-sdk/tests/lib_2
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
..
analyzer Normalize status files 2019-06-19 23:04:01 +00:00
async Make unawaited accept a nullable argument. 2021-09-27 11:58:16 +00:00
collection Tweaks, refactoring and updates on DoubleLinkedQueue. 2021-08-31 12:44:39 +00:00
convert Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
developer Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
html [dart:html] Await completer future instead in js_interop_1_test 2021-09-10 21:17:26 +00:00
isolate [vm/gardening] Fix static_function_test to accommodate closure passing. 2021-09-03 22:44:28 +00:00
js Add external extension methods. 2021-09-22 19:52:10 +00:00
math Fix behavior for -infinity width/height of rectangles. 2021-06-21 13:29:39 +00:00
mirrors Fix scope resolution of metadata on type parameters 2021-08-17 15:17:02 +00:00
typed_data [testing] Rely on language versions in the analyzer tests 2021-06-02 07:47:46 +00:00
wasm Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
web Add language versions to _2 test libraries 2021-04-26 17:58:57 +00:00
lib_2.status Skip extension tests that use eval on CSP build 2021-09-22 22:33:52 +00:00
lib_2_app_jit.status Remove appJit and precompiled compiler options 2019-06-24 16:07:27 +00:00
lib_2_dart2js.status Optimize js_util callMethod calls for 0-4 arguments. 2021-06-30 20:11:44 +00:00
lib_2_dartdevc.status Refactored html/js_util_test.dart and added more js_util test coverage. 2021-02-24 00:58:47 +00:00
lib_2_kernel.status [SDK] Removes non-exiting tests from .status 2021-02-04 06:46:13 +00:00
lib_2_precompiled.status Delete lib_2/async/timer_not_available_test. 2019-09-12 22:58:07 +00:00
lib_2_vm.status [vm/concurrency] Enable more isolate tests, remove outdated TODOs, fix 2 tests 2021-07-16 07:51:58 +00:00