mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 16:19:07 +00:00
3f4f10bd0f
The old version of language/void/void_type_usage_test.dart had some faults (compile-time errors were expected, but they weren't reported by tools and yet the test run succeeded). The failures were caused by some amount of duplication in the labels (a handful of duplicate labels from a set of about 450 labels, that is, it wasn't immediately obvious). This CL updates the test to use the new test expectation syntax (`// ^^^^`) and adjusts the expectations to match the currently reported error messages, plus the ones about `void` that are missing. Note that this test went through a phase where I believed that we had about 260 failures (130 CFE and 130 analyzer), but they turned out to be a consequence of migrating this test incorrectly from being a multi test into a form where it uses the current test expectation comments (`// ^^^` and such). At this point we just have 3 failures (all on expressions of the form `e += 1`), all with the CFE. Bug: https://github.com/dart-lang/sdk/issues/31883 Change-Id: Ib1ceb56326a5847e3ca23ac0ee655eee65f0d76f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/350921 Reviewed-by: Nate Bosch <nbosch@google.com> Commit-Queue: Erik Ernst <eernst@google.com> |
||
---|---|---|
.. | ||
await_void_error_test.dart | ||
generalized_void_syntax_test.dart | ||
generalized_void_usage_test.dart | ||
README.md | ||
regress_54800_test.dart | ||
return_future_future_or_void_async_error0_test.dart | ||
return_future_future_or_void_async_error1_test.dart | ||
return_future_future_or_void_async_test.dart | ||
return_future_future_or_void_sync_error0_test.dart | ||
return_future_future_or_void_sync_error1_test.dart | ||
return_future_future_or_void_sync_test.dart | ||
return_future_or_future_or_void_sync_error1_test.dart | ||
return_future_or_future_or_void_sync_error2_test.dart | ||
return_future_or_future_or_void_sync_test.dart | ||
return_future_or_void_async_test.dart | ||
return_future_or_void_sync_error3_test.dart | ||
return_future_or_void_sync_error4_test.dart | ||
return_future_or_void_sync_test.dart | ||
return_future_void_async_test.dart | ||
return_void_async_error0_test.dart | ||
return_void_async_error1_test.dart | ||
return_void_async_error2_test.dart | ||
return_void_async_test.dart | ||
return_void_sync_error0_test.dart | ||
return_void_sync_error1_test.dart | ||
return_void_sync_error2_test.dart | ||
return_void_sync_test.dart | ||
void_arrow_return_test.dart | ||
void_block_return_test.dart | ||
void_check_test.dart | ||
void_subtype_test.dart | ||
void_type_callbacks_test.dart | ||
void_type_function_types_test.dart | ||
void_type_override_test.dart | ||
void_type_test.dart | ||
void_type_usage_test.dart |
Feature tests for void
This directory was created in order to hold tests pertaining to the
Dart feature temporarily known as generalized void. This feature
allows the type void
to occur in many locations where it was
previously a compile-time error, and it is intended to allow
developers to express the intent that the value of certain expressions
is of no interest, and help them to avoid using such values. For more
details, please check the
feature specification.