dart-sdk/tests/language/void
Erik Ernst 3f4f10bd0f Update void usage test to new test runner expectations
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>
2024-02-28 18:30:20 +00:00
..
await_void_error_test.dart
generalized_void_syntax_test.dart
generalized_void_usage_test.dart
README.md
regress_54800_test.dart [dart2wasm] Fix compiler bug regarding void values that can be observed 2024-02-07 08:05:19 +00:00
return_future_future_or_void_async_error0_test.dart Migrate "u" and "v" directory language tests off @compile-error. 2023-04-20 22:33:22 +00:00
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 Migrate "u" and "v" directory language tests off @compile-error. 2023-04-20 22:33:22 +00:00
return_future_future_or_void_sync_error1_test.dart Migrate "u" and "v" directory language tests off @compile-error. 2023-04-20 22:33:22 +00:00
return_future_future_or_void_sync_test.dart
return_future_or_future_or_void_sync_error1_test.dart Migrate "u" and "v" directory language tests off @compile-error. 2023-04-20 22:33:22 +00:00
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 Migrate "u" and "v" directory language tests off @compile-error. 2023-04-20 22:33:22 +00:00
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 Migrate "u" and "v" directory language tests off @compile-error. 2023-04-20 22:33:22 +00:00
return_void_async_error1_test.dart Migrate "u" and "v" directory language tests off @compile-error. 2023-04-20 22:33:22 +00:00
return_void_async_error2_test.dart Migrate "u" and "v" directory language tests off @compile-error. 2023-04-20 22:33:22 +00:00
return_void_async_test.dart
return_void_sync_error0_test.dart Migrate "u" and "v" directory language tests off @compile-error. 2023-04-20 22:33:22 +00:00
return_void_sync_error1_test.dart Migrate "u" and "v" directory language tests off @compile-error. 2023-04-20 22:33:22 +00:00
return_void_sync_error2_test.dart Migrate "u" and "v" directory language tests off @compile-error. 2023-04-20 22:33:22 +00:00
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 Update void usage test to new test runner expectations 2024-02-28 18:30:20 +00:00

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.