e835ab692e
The tests `variable_property_not_promoted_test` and `this_property_not_promoted_test` verify that fields are _not_ promoted. To prevent them from failing when we enable the language feature `inference-update-2` (which provides field promotion), they need `@dart=3.0` directives. This ensures that we will continue to have coverage of the old (non-promoting) behavior after field promotion is switched on. Bug: https://github.com/dart-lang/language/issues/2020 Change-Id: I376da01dfe4223f17ae4863e4460b4f1a0708dc6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/314760 Reviewed-by: Lasse Nielsen <lrn@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.