[tests] Add implicit downcast requirements

Some expectations in these tests rely on implicit downcasts throwing
errors at runtime.

Fixes: https://github.com/dart-lang/sdk/issues/55353
Change-Id: Ie1923e26552b95ddb3d4199e0f8f5a2a05e2c124
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/361004
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
This commit is contained in:
Nicholas Shahan 2024-04-04 00:42:24 +00:00 committed by Commit Queue
parent c042924d0d
commit eda91b407d
2 changed files with 4 additions and 0 deletions

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Requirements=checked-implicit-downcasts
/// WARNING
///
/// Not all of the expectations in this test match the language specification.

View file

@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Requirements=checked-implicit-downcasts
/// WARNING
///
/// Not all of the expectations in this test match the language specification.