diff --git a/tests/language/async_star/async_star_invalid_test.dart b/tests/language/async_star/async_star_invalid_test.dart index 0718d43d0ce..cbe8aa14518 100644 --- a/tests/language/async_star/async_star_invalid_test.dart +++ b/tests/language/async_star/async_star_invalid_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=records - // Test that various invalid uses of `yield` are disallowed. import "dart:async"; diff --git a/tests/language/class_modifiers/base/base_class_abstract_construct_error_test.dart b/tests/language/class_modifiers/base/base_class_abstract_construct_error_test.dart index 4a9c2a9c59f..0b39a6c97f3 100644 --- a/tests/language/class_modifiers/base/base_class_abstract_construct_error_test.dart +++ b/tests/language/class_modifiers/base/base_class_abstract_construct_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when attempting to construct an abstract base class. abstract base class NotConstructable {} diff --git a/tests/language/class_modifiers/base/base_class_base_subtype_test.dart b/tests/language/class_modifiers/base/base_class_base_subtype_test.dart index bd64d2a480b..d0d3a5fcb23 100644 --- a/tests/language/class_modifiers/base/base_class_base_subtype_test.dart +++ b/tests/language/class_modifiers/base/base_class_base_subtype_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow subtypes of a base class or mixin to be base as well. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/base/base_class_extend_lib.dart b/tests/language/class_modifiers/base/base_class_extend_lib.dart index 10e4ce350d6..99a329f4862 100644 --- a/tests/language/class_modifiers/base/base_class_extend_lib.dart +++ b/tests/language/class_modifiers/base/base_class_extend_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow base classes to be extended by multiple classes in the same library. base class BaseClass { diff --git a/tests/language/class_modifiers/base/base_class_extend_not_base_final_error_test.dart b/tests/language/class_modifiers/base/base_class_extend_not_base_final_error_test.dart index efaf28302ff..74102a36fd8 100644 --- a/tests/language/class_modifiers/base/base_class_extend_not_base_final_error_test.dart +++ b/tests/language/class_modifiers/base/base_class_extend_not_base_final_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when extending a base class where the subclass is not a base, final or // sealed class. diff --git a/tests/language/class_modifiers/base/base_class_extend_outside_test.dart b/tests/language/class_modifiers/base/base_class_extend_outside_test.dart index c4995fc03ff..4fd57731de3 100644 --- a/tests/language/class_modifiers/base/base_class_extend_outside_test.dart +++ b/tests/language/class_modifiers/base/base_class_extend_outside_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow base classes to be extended by multiple classes outside its library. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/base/base_class_extend_test.dart b/tests/language/class_modifiers/base/base_class_extend_test.dart index 0fc52bfc5ca..b9849223069 100644 --- a/tests/language/class_modifiers/base/base_class_extend_test.dart +++ b/tests/language/class_modifiers/base/base_class_extend_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow base classes to be extended by multiple classes inside its // library. diff --git a/tests/language/class_modifiers/base/base_class_implement_error_test.dart b/tests/language/class_modifiers/base/base_class_implement_error_test.dart index 9bd835e58dc..57afec1296a 100644 --- a/tests/language/class_modifiers/base/base_class_implement_error_test.dart +++ b/tests/language/class_modifiers/base/base_class_implement_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when attempting to implement base class outside of library. import 'base_class_implement_lib.dart'; diff --git a/tests/language/class_modifiers/base/base_class_implement_lib.dart b/tests/language/class_modifiers/base/base_class_implement_lib.dart index ab173572cd3..a94fa2facd7 100644 --- a/tests/language/class_modifiers/base/base_class_implement_lib.dart +++ b/tests/language/class_modifiers/base/base_class_implement_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow base classes to be implemented by multiple classes in the same library. base class BaseClass { diff --git a/tests/language/class_modifiers/base/base_class_implement_test.dart b/tests/language/class_modifiers/base/base_class_implement_test.dart index c0e694fefae..8781fde5a03 100644 --- a/tests/language/class_modifiers/base/base_class_implement_test.dart +++ b/tests/language/class_modifiers/base/base_class_implement_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow base classes to be implemented by multiple classes inside its // library. diff --git a/tests/language/class_modifiers/base/base_class_inside_not_base_final_sealed_error_test.dart b/tests/language/class_modifiers/base/base_class_inside_not_base_final_sealed_error_test.dart index 58bdfa48cb0..71285ad6a36 100644 --- a/tests/language/class_modifiers/base/base_class_inside_not_base_final_sealed_error_test.dart +++ b/tests/language/class_modifiers/base/base_class_inside_not_base_final_sealed_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers,sealed-class - // Error when subtyping a base class where the subtype is not base, final or // sealed. diff --git a/tests/language/class_modifiers/base/base_class_mixin_on_lib.dart b/tests/language/class_modifiers/base/base_class_mixin_on_lib.dart index 47c4d3013e3..ca43f3c198e 100644 --- a/tests/language/class_modifiers/base/base_class_mixin_on_lib.dart +++ b/tests/language/class_modifiers/base/base_class_mixin_on_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by base_class_mixin_on_test.dart. base class BaseClass {} diff --git a/tests/language/class_modifiers/base/base_class_mixin_on_test.dart b/tests/language/class_modifiers/base/base_class_mixin_on_test.dart index 1b3a6ba1de5..ab6b7745384 100644 --- a/tests/language/class_modifiers/base/base_class_mixin_on_test.dart +++ b/tests/language/class_modifiers/base/base_class_mixin_on_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow a base type to appear in the "on" clause of a mixin declaration in // another library. diff --git a/tests/language/class_modifiers/base/base_class_part_lib.dart b/tests/language/class_modifiers/base/base_class_part_lib.dart index 81e9d98f654..266b94102d7 100644 --- a/tests/language/class_modifiers/base/base_class_part_lib.dart +++ b/tests/language/class_modifiers/base/base_class_part_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other declarations used by base_class_part_test.dart. part of 'base_class_part_test.dart'; diff --git a/tests/language/class_modifiers/base/base_class_part_test.dart b/tests/language/class_modifiers/base/base_class_part_test.dart index 4091d9df588..e1261fed64b 100644 --- a/tests/language/class_modifiers/base/base_class_part_test.dart +++ b/tests/language/class_modifiers/base/base_class_part_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow extending and implementing base classes in a part file of // the same library diff --git a/tests/language/class_modifiers/base/base_class_subtype_base_final_or_sealed_test.dart b/tests/language/class_modifiers/base/base_class_subtype_base_final_or_sealed_test.dart index 04ba58fad0e..352fa622838 100644 --- a/tests/language/class_modifiers/base/base_class_subtype_base_final_or_sealed_test.dart +++ b/tests/language/class_modifiers/base/base_class_subtype_base_final_or_sealed_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers,sealed-class - // Allow base mixins/classes to be subtyped by base, final, or sealed // classes/mixins and produce no error. diff --git a/tests/language/class_modifiers/base/base_class_syntax_error_test.dart b/tests/language/class_modifiers/base/base_class_syntax_error_test.dart index a896f060a31..852d62d184e 100644 --- a/tests/language/class_modifiers/base/base_class_syntax_error_test.dart +++ b/tests/language/class_modifiers/base/base_class_syntax_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Syntax errors such as using `base` keyword in a place other than a class or // mixin. diff --git a/tests/language/class_modifiers/base/base_class_syntax_mixin_class_test.dart b/tests/language/class_modifiers/base/base_class_syntax_mixin_class_test.dart index 8d20f4060e8..f14587f1b17 100644 --- a/tests/language/class_modifiers/base/base_class_syntax_mixin_class_test.dart +++ b/tests/language/class_modifiers/base/base_class_syntax_mixin_class_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Tests that we can still use `base` as an identifier for mixin names. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/base/base_class_syntax_mixin_test.dart b/tests/language/class_modifiers/base/base_class_syntax_mixin_test.dart index 2b81654c7d4..f58b07eb8a3 100644 --- a/tests/language/class_modifiers/base/base_class_syntax_mixin_test.dart +++ b/tests/language/class_modifiers/base/base_class_syntax_mixin_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Tests that we can still use `base` as an identifier for mixin names. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/base/base_class_syntax_test.dart b/tests/language/class_modifiers/base/base_class_syntax_test.dart index e50fda7de51..52645295475 100644 --- a/tests/language/class_modifiers/base/base_class_syntax_test.dart +++ b/tests/language/class_modifiers/base/base_class_syntax_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Tests we can still use `base` as an identifier. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/base/base_class_typedef_implement_error_test.dart b/tests/language/class_modifiers/base/base_class_typedef_implement_error_test.dart index 3aeb9fc0462..701a5b76f33 100644 --- a/tests/language/class_modifiers/base/base_class_typedef_implement_error_test.dart +++ b/tests/language/class_modifiers/base/base_class_typedef_implement_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when attempting to implement typedef base class outside of its library. import 'base_class_typedef_lib.dart'; diff --git a/tests/language/class_modifiers/base/base_class_typedef_lib.dart b/tests/language/class_modifiers/base/base_class_typedef_lib.dart index 0630980e312..ef313586303 100644 --- a/tests/language/class_modifiers/base/base_class_typedef_lib.dart +++ b/tests/language/class_modifiers/base/base_class_typedef_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by // base_class_typedef_implement_error_test.dart. diff --git a/tests/language/class_modifiers/base/base_class_typedef_outside_of_library_lib.dart b/tests/language/class_modifiers/base/base_class_typedef_outside_of_library_lib.dart index 2d1a03c2f17..c03c46dfda9 100644 --- a/tests/language/class_modifiers/base/base_class_typedef_outside_of_library_lib.dart +++ b/tests/language/class_modifiers/base/base_class_typedef_outside_of_library_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by // base_class_typedef_outside_of_library_test.dart diff --git a/tests/language/class_modifiers/base/base_class_typedef_outside_of_library_lib2.dart b/tests/language/class_modifiers/base/base_class_typedef_outside_of_library_lib2.dart index 7a1971816fc..162634d6669 100644 --- a/tests/language/class_modifiers/base/base_class_typedef_outside_of_library_lib2.dart +++ b/tests/language/class_modifiers/base/base_class_typedef_outside_of_library_lib2.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by // base_class_typedef_outside_of_library_test.dart diff --git a/tests/language/class_modifiers/base/base_class_typedef_outside_of_library_test.dart b/tests/language/class_modifiers/base/base_class_typedef_outside_of_library_test.dart index c2b06744b1d..43c6ae8479f 100644 --- a/tests/language/class_modifiers/base/base_class_typedef_outside_of_library_test.dart +++ b/tests/language/class_modifiers/base/base_class_typedef_outside_of_library_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow typedef in different library, used by class in library. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/base/base_class_typedef_test.dart b/tests/language/class_modifiers/base/base_class_typedef_test.dart index bf740d41ea0..f6a7864599e 100644 --- a/tests/language/class_modifiers/base/base_class_typedef_test.dart +++ b/tests/language/class_modifiers/base/base_class_typedef_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow typedef base classes to be extended and implemented by // multiple classes in the same library. diff --git a/tests/language/class_modifiers/base/base_class_typedef_used_outside_error_test.dart b/tests/language/class_modifiers/base/base_class_typedef_used_outside_error_test.dart index 326e9ba8d19..fdbaab3a11d 100644 --- a/tests/language/class_modifiers/base/base_class_typedef_used_outside_error_test.dart +++ b/tests/language/class_modifiers/base/base_class_typedef_used_outside_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when trying to implement a typedef base class outside of // the base class' library when the typedef is also outside the base class // library. diff --git a/tests/language/class_modifiers/base/base_class_typedef_used_outside_lib.dart b/tests/language/class_modifiers/base/base_class_typedef_used_outside_lib.dart index 3260dcc2f94..9780f157a2c 100644 --- a/tests/language/class_modifiers/base/base_class_typedef_used_outside_lib.dart +++ b/tests/language/class_modifiers/base/base_class_typedef_used_outside_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by // base_class_typedef_used_outside_error_test.dart. diff --git a/tests/language/class_modifiers/base/base_mixin_implement_error_test.dart b/tests/language/class_modifiers/base/base_mixin_implement_error_test.dart index dc2eb0f9b83..eaebb04aa6b 100644 --- a/tests/language/class_modifiers/base/base_mixin_implement_error_test.dart +++ b/tests/language/class_modifiers/base/base_mixin_implement_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when attempting to implement base mixin outside of library. import 'base_mixin_implement_lib.dart'; diff --git a/tests/language/class_modifiers/base/base_mixin_implement_lib.dart b/tests/language/class_modifiers/base/base_mixin_implement_lib.dart index c054e9e2b1d..f13b33681b1 100644 --- a/tests/language/class_modifiers/base/base_mixin_implement_lib.dart +++ b/tests/language/class_modifiers/base/base_mixin_implement_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow base mixins to be implemented by multiple classes in the same library. base mixin BaseMixin { diff --git a/tests/language/class_modifiers/base/base_mixin_typedef_with_lib.dart b/tests/language/class_modifiers/base/base_mixin_typedef_with_lib.dart index 633136a1583..e4928c76586 100644 --- a/tests/language/class_modifiers/base/base_mixin_typedef_with_lib.dart +++ b/tests/language/class_modifiers/base/base_mixin_typedef_with_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Library declarations used by // base_mixin_typedef_with_outside_test.dart and // base_mixin_typedef_with_test.dart. diff --git a/tests/language/class_modifiers/base/base_mixin_typedef_with_outside_test.dart b/tests/language/class_modifiers/base/base_mixin_typedef_with_outside_test.dart index 9cdf33a8be2..cc3aa690a1a 100644 --- a/tests/language/class_modifiers/base/base_mixin_typedef_with_outside_test.dart +++ b/tests/language/class_modifiers/base/base_mixin_typedef_with_outside_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow typedef base mixins to be mixed in by multiple classes outside the // library. diff --git a/tests/language/class_modifiers/base/base_mixin_typedef_with_test.dart b/tests/language/class_modifiers/base/base_mixin_typedef_with_test.dart index 2a50ff6debe..c93c48a8846 100644 --- a/tests/language/class_modifiers/base/base_mixin_typedef_with_test.dart +++ b/tests/language/class_modifiers/base/base_mixin_typedef_with_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow typedef base mixins to be mixed in by multiple classes in the same // library. diff --git a/tests/language/class_modifiers/base/base_mixin_with_lib.dart b/tests/language/class_modifiers/base/base_mixin_with_lib.dart index 866026acbe0..8b3a8677f63 100644 --- a/tests/language/class_modifiers/base/base_mixin_with_lib.dart +++ b/tests/language/class_modifiers/base/base_mixin_with_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow base mixins to be mixed by multiple classes in the same library. base mixin BaseMixin { diff --git a/tests/language/class_modifiers/base/base_mixin_with_not_base_final_error_test.dart b/tests/language/class_modifiers/base/base_mixin_with_not_base_final_error_test.dart index 47c2e88fd18..6679f11628d 100644 --- a/tests/language/class_modifiers/base/base_mixin_with_not_base_final_error_test.dart +++ b/tests/language/class_modifiers/base/base_mixin_with_not_base_final_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when mixing in a base mixin where the class mixing it in is not base, // final, or sealed. diff --git a/tests/language/class_modifiers/base/base_mixin_with_outside_test.dart b/tests/language/class_modifiers/base/base_mixin_with_outside_test.dart index 43b7d6350c4..6b36eae9d92 100644 --- a/tests/language/class_modifiers/base/base_mixin_with_outside_test.dart +++ b/tests/language/class_modifiers/base/base_mixin_with_outside_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow base mixins to be mixed by multiple classes outside its library. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/base/base_mixin_with_test.dart b/tests/language/class_modifiers/base/base_mixin_with_test.dart index ac543e40a16..51b3c403d1a 100644 --- a/tests/language/class_modifiers/base/base_mixin_with_test.dart +++ b/tests/language/class_modifiers/base/base_mixin_with_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow base mixins to be mixed by multiple classes in the same library. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/base_transitivity/base_class_different_library_error_test.dart b/tests/language/class_modifiers/base_transitivity/base_class_different_library_error_test.dart index 07ee6fd271d..263daec9e6b 100644 --- a/tests/language/class_modifiers/base_transitivity/base_class_different_library_error_test.dart +++ b/tests/language/class_modifiers/base_transitivity/base_class_different_library_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the invalid uses of a base class defined in a different library import 'dart:collection'; diff --git a/tests/language/class_modifiers/base_transitivity/base_class_different_library_test.dart b/tests/language/class_modifiers/base_transitivity/base_class_different_library_test.dart index 259a85d7958..bdfc715020d 100644 --- a/tests/language/class_modifiers/base_transitivity/base_class_different_library_test.dart +++ b/tests/language/class_modifiers/base_transitivity/base_class_different_library_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the valid uses of a base class defined in a different library import "shared_library_definitions.dart" show BaseClass; diff --git a/tests/language/class_modifiers/base_transitivity/base_class_same_library_error_test.dart b/tests/language/class_modifiers/base_transitivity/base_class_same_library_error_test.dart index a4577d08c9e..0aa73e55ff5 100644 --- a/tests/language/class_modifiers/base_transitivity/base_class_same_library_error_test.dart +++ b/tests/language/class_modifiers/base_transitivity/base_class_same_library_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the invalid uses of a base class within the same library class SimpleClass {} diff --git a/tests/language/class_modifiers/base_transitivity/base_class_same_library_test.dart b/tests/language/class_modifiers/base_transitivity/base_class_same_library_test.dart index 264a891f661..79a1e04802e 100644 --- a/tests/language/class_modifiers/base_transitivity/base_class_same_library_test.dart +++ b/tests/language/class_modifiers/base_transitivity/base_class_same_library_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the valid uses of a base class within the same library base class BaseClass {} diff --git a/tests/language/class_modifiers/base_transitivity/base_mixin_class_different_library_error_test.dart b/tests/language/class_modifiers/base_transitivity/base_mixin_class_different_library_error_test.dart index e379a1723a3..8efc59edc85 100644 --- a/tests/language/class_modifiers/base_transitivity/base_mixin_class_different_library_error_test.dart +++ b/tests/language/class_modifiers/base_transitivity/base_mixin_class_different_library_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the invalid uses of a base mixin class defined in a different library. import "shared_library_definitions.dart" show SimpleClass, BaseMixinClass; diff --git a/tests/language/class_modifiers/base_transitivity/base_mixin_class_different_library_test.dart b/tests/language/class_modifiers/base_transitivity/base_mixin_class_different_library_test.dart index 0b396be409c..1d10fe91fbc 100644 --- a/tests/language/class_modifiers/base_transitivity/base_mixin_class_different_library_test.dart +++ b/tests/language/class_modifiers/base_transitivity/base_mixin_class_different_library_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the valid uses of a base mixin class defined in a different library import "shared_library_definitions.dart" show BaseMixinClass; diff --git a/tests/language/class_modifiers/base_transitivity/base_mixin_class_same_library_error_test.dart b/tests/language/class_modifiers/base_transitivity/base_mixin_class_same_library_error_test.dart index ad0e46b0b84..2b2dd5e106f 100644 --- a/tests/language/class_modifiers/base_transitivity/base_mixin_class_same_library_error_test.dart +++ b/tests/language/class_modifiers/base_transitivity/base_mixin_class_same_library_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the invalid uses of a base mixin class within the same library class SimpleClass {} diff --git a/tests/language/class_modifiers/base_transitivity/base_mixin_class_same_library_test.dart b/tests/language/class_modifiers/base_transitivity/base_mixin_class_same_library_test.dart index fb34e00fc6e..80d0f0cc78d 100644 --- a/tests/language/class_modifiers/base_transitivity/base_mixin_class_same_library_test.dart +++ b/tests/language/class_modifiers/base_transitivity/base_mixin_class_same_library_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the valid uses of a base mixin class within the same library base mixin class BaseMixinClass {} diff --git a/tests/language/class_modifiers/base_transitivity/base_mixin_different_library_error_test.dart b/tests/language/class_modifiers/base_transitivity/base_mixin_different_library_error_test.dart index 9cf2fa40770..ffd3613f5eb 100644 --- a/tests/language/class_modifiers/base_transitivity/base_mixin_different_library_error_test.dart +++ b/tests/language/class_modifiers/base_transitivity/base_mixin_different_library_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the invalid uses of a base mixin defined in a different library. import "shared_library_definitions.dart" show SimpleClass, BaseMixin; diff --git a/tests/language/class_modifiers/base_transitivity/base_mixin_different_library_test.dart b/tests/language/class_modifiers/base_transitivity/base_mixin_different_library_test.dart index 8b74199ef3f..db19dbb78cf 100644 --- a/tests/language/class_modifiers/base_transitivity/base_mixin_different_library_test.dart +++ b/tests/language/class_modifiers/base_transitivity/base_mixin_different_library_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the valid uses of a base mixin defined in a different library import "shared_library_definitions.dart" show BaseMixin; diff --git a/tests/language/class_modifiers/base_transitivity/base_mixin_same_library_error_test.dart b/tests/language/class_modifiers/base_transitivity/base_mixin_same_library_error_test.dart index e6ceb5e9575..2ccb7d3f822 100644 --- a/tests/language/class_modifiers/base_transitivity/base_mixin_same_library_error_test.dart +++ b/tests/language/class_modifiers/base_transitivity/base_mixin_same_library_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the invalid uses of a base mixin class within the same library class SimpleClass {} diff --git a/tests/language/class_modifiers/base_transitivity/base_mixin_same_library_test.dart b/tests/language/class_modifiers/base_transitivity/base_mixin_same_library_test.dart index d96cad5dfa1..8c4bc653c1e 100644 --- a/tests/language/class_modifiers/base_transitivity/base_mixin_same_library_test.dart +++ b/tests/language/class_modifiers/base_transitivity/base_mixin_same_library_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the valid uses of a base mixin within the same library base mixin BaseMixin {} diff --git a/tests/language/class_modifiers/base_transitivity/final_class_different_library_error_test.dart b/tests/language/class_modifiers/base_transitivity/final_class_different_library_error_test.dart index 292e6d20754..f7e11377343 100644 --- a/tests/language/class_modifiers/base_transitivity/final_class_different_library_error_test.dart +++ b/tests/language/class_modifiers/base_transitivity/final_class_different_library_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the invalid uses of a final class defined in a different library import "shared_library_definitions.dart" show FinalClass, SimpleClass; diff --git a/tests/language/class_modifiers/base_transitivity/final_class_same_library_error_test.dart b/tests/language/class_modifiers/base_transitivity/final_class_same_library_error_test.dart index c41e1c5ffd7..23ef20a03b1 100644 --- a/tests/language/class_modifiers/base_transitivity/final_class_same_library_error_test.dart +++ b/tests/language/class_modifiers/base_transitivity/final_class_same_library_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the invalid uses of a final class within the same library class SimpleClass {} diff --git a/tests/language/class_modifiers/base_transitivity/final_class_same_library_test.dart b/tests/language/class_modifiers/base_transitivity/final_class_same_library_test.dart index 1a512b0e24b..d56da992e8e 100644 --- a/tests/language/class_modifiers/base_transitivity/final_class_same_library_test.dart +++ b/tests/language/class_modifiers/base_transitivity/final_class_same_library_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the valid uses of a final class within the same library final class FinalClass {} diff --git a/tests/language/class_modifiers/base_transitivity/interface_class_different_library_error_test.dart b/tests/language/class_modifiers/base_transitivity/interface_class_different_library_error_test.dart index 48b9e8864ae..ca29762548c 100644 --- a/tests/language/class_modifiers/base_transitivity/interface_class_different_library_error_test.dart +++ b/tests/language/class_modifiers/base_transitivity/interface_class_different_library_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the invalid uses of an interface class defined in a different library import "shared_library_definitions.dart" show InterfaceClass; diff --git a/tests/language/class_modifiers/base_transitivity/interface_class_different_library_test.dart b/tests/language/class_modifiers/base_transitivity/interface_class_different_library_test.dart index 9aa30c04f37..b9ca931347f 100644 --- a/tests/language/class_modifiers/base_transitivity/interface_class_different_library_test.dart +++ b/tests/language/class_modifiers/base_transitivity/interface_class_different_library_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the valid uses of an interface class defined in a different library import "shared_library_definitions.dart" show InterfaceClass; diff --git a/tests/language/class_modifiers/base_transitivity/interface_class_same_library_test.dart b/tests/language/class_modifiers/base_transitivity/interface_class_same_library_test.dart index a4d16094445..a4e8b109325 100644 --- a/tests/language/class_modifiers/base_transitivity/interface_class_same_library_test.dart +++ b/tests/language/class_modifiers/base_transitivity/interface_class_same_library_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the valid uses of an interface class within the same library interface class InterfaceClass {} diff --git a/tests/language/class_modifiers/base_transitivity/sealed_class_different_library_error_test.dart b/tests/language/class_modifiers/base_transitivity/sealed_class_different_library_error_test.dart index 6f0f4c110ca..988db88e723 100644 --- a/tests/language/class_modifiers/base_transitivity/sealed_class_different_library_error_test.dart +++ b/tests/language/class_modifiers/base_transitivity/sealed_class_different_library_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the invalid uses of a sealed class defined in a different library import "shared_library_definitions.dart" show SealedClass, SimpleClass; diff --git a/tests/language/class_modifiers/base_transitivity/sealed_class_same_library_test.dart b/tests/language/class_modifiers/base_transitivity/sealed_class_same_library_test.dart index 44464dab820..0ca30e08a8a 100644 --- a/tests/language/class_modifiers/base_transitivity/sealed_class_same_library_test.dart +++ b/tests/language/class_modifiers/base_transitivity/sealed_class_same_library_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Test the valid uses of a sealed class within the same library sealed class SealedClass {} diff --git a/tests/language/class_modifiers/base_transitivity/shared_library_definitions.dart b/tests/language/class_modifiers/base_transitivity/shared_library_definitions.dart index aec3071bfe5..fdea0341f95 100644 --- a/tests/language/class_modifiers/base_transitivity/shared_library_definitions.dart +++ b/tests/language/class_modifiers/base_transitivity/shared_library_definitions.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - /// Library which defines some classes and mixins to be used to test behaviors /// across libraries. diff --git a/tests/language/class_modifiers/base_transitivity/shared_library_definitions_legacy.dart b/tests/language/class_modifiers/base_transitivity/shared_library_definitions_legacy.dart index fb310f143cc..8bb0fcf6703 100644 --- a/tests/language/class_modifiers/base_transitivity/shared_library_definitions_legacy.dart +++ b/tests/language/class_modifiers/base_transitivity/shared_library_definitions_legacy.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // @dart=2.19 import 'dart:collection'; diff --git a/tests/language/class_modifiers/class_modifiers_syntax_error_test.dart b/tests/language/class_modifiers/class_modifiers_syntax_error_test.dart index b6ddd670901..5ac72cb226a 100644 --- a/tests/language/class_modifiers/class_modifiers_syntax_error_test.dart +++ b/tests/language/class_modifiers/class_modifiers_syntax_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers,sealed-class - // Syntax errors when having more than one modifier or an invalid ordering of // modifiers. diff --git a/tests/language/class_modifiers/final/final_class_abstract_construct_error_test.dart b/tests/language/class_modifiers/final/final_class_abstract_construct_error_test.dart index 8fb8c53d399..7c0776e787c 100644 --- a/tests/language/class_modifiers/final/final_class_abstract_construct_error_test.dart +++ b/tests/language/class_modifiers/final/final_class_abstract_construct_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when attempting to construct an abstract final class. abstract final class NotConstructable {} diff --git a/tests/language/class_modifiers/final/final_class_base_class_lib.dart b/tests/language/class_modifiers/final/final_class_base_class_lib.dart index 1c5320c88ad..9b7fa3204fc 100644 --- a/tests/language/class_modifiers/final/final_class_base_class_lib.dart +++ b/tests/language/class_modifiers/final/final_class_base_class_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Library for having a `final` subtype on a `base` superclass outside its // library. diff --git a/tests/language/class_modifiers/final/final_class_extend_lib.dart b/tests/language/class_modifiers/final/final_class_extend_lib.dart index 34e11fd7a4a..88cf53b0a0f 100644 --- a/tests/language/class_modifiers/final/final_class_extend_lib.dart +++ b/tests/language/class_modifiers/final/final_class_extend_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow final classes to be extended by multiple classes in the same // library. diff --git a/tests/language/class_modifiers/final/final_class_extend_outside_error_test.dart b/tests/language/class_modifiers/final/final_class_extend_outside_error_test.dart index 3bcd8f4790c..69aaa145fcc 100644 --- a/tests/language/class_modifiers/final/final_class_extend_outside_error_test.dart +++ b/tests/language/class_modifiers/final/final_class_extend_outside_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when attempting to extend an final class outside of library. import 'final_class_extend_lib.dart'; diff --git a/tests/language/class_modifiers/final/final_class_extend_test.dart b/tests/language/class_modifiers/final/final_class_extend_test.dart index c32c08b6f24..e410cd3f5a1 100644 --- a/tests/language/class_modifiers/final/final_class_extend_test.dart +++ b/tests/language/class_modifiers/final/final_class_extend_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow final classes to be extended by multiple classes inside its // library. diff --git a/tests/language/class_modifiers/final/final_class_extends_base_outside_test.dart b/tests/language/class_modifiers/final/final_class_extends_base_outside_test.dart index fadafc068c7..67d105784a1 100644 --- a/tests/language/class_modifiers/final/final_class_extends_base_outside_test.dart +++ b/tests/language/class_modifiers/final/final_class_extends_base_outside_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow `final` on a `base` superclass outside its library. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/final/final_class_final_subtype_test.dart b/tests/language/class_modifiers/final/final_class_final_subtype_test.dart index 88c54fe64d3..cc739eea763 100644 --- a/tests/language/class_modifiers/final/final_class_final_subtype_test.dart +++ b/tests/language/class_modifiers/final/final_class_final_subtype_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow subtypes of a final class or mixin to be final as well. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/final/final_class_implement_lib.dart b/tests/language/class_modifiers/final/final_class_implement_lib.dart index 13384f0c7e1..726c43adf32 100644 --- a/tests/language/class_modifiers/final/final_class_implement_lib.dart +++ b/tests/language/class_modifiers/final/final_class_implement_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow final classes to be implemented in the same library. final class FinalClass { diff --git a/tests/language/class_modifiers/final/final_class_implement_outside_error_test.dart b/tests/language/class_modifiers/final/final_class_implement_outside_error_test.dart index b43fef4f247..05691b5c0ff 100644 --- a/tests/language/class_modifiers/final/final_class_implement_outside_error_test.dart +++ b/tests/language/class_modifiers/final/final_class_implement_outside_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when attempting to implement a final class outside of library. import 'final_class_implement_lib.dart'; diff --git a/tests/language/class_modifiers/final/final_class_implement_test.dart b/tests/language/class_modifiers/final/final_class_implement_test.dart index af433588f84..7c36abf5409 100644 --- a/tests/language/class_modifiers/final/final_class_implement_test.dart +++ b/tests/language/class_modifiers/final/final_class_implement_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow final classes to be implemented by multiple classes inside its // library. diff --git a/tests/language/class_modifiers/final/final_class_inside_not_base_final_sealed_error_test.dart b/tests/language/class_modifiers/final/final_class_inside_not_base_final_sealed_error_test.dart index 7a9b207a781..56dcfd441a4 100644 --- a/tests/language/class_modifiers/final/final_class_inside_not_base_final_sealed_error_test.dart +++ b/tests/language/class_modifiers/final/final_class_inside_not_base_final_sealed_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers,sealed-class - // Error when subtyping a final class where the subtype is not base, final or // sealed. diff --git a/tests/language/class_modifiers/final/final_class_part_lib.dart b/tests/language/class_modifiers/final/final_class_part_lib.dart index aaa86010b79..f6bf892ed9b 100644 --- a/tests/language/class_modifiers/final/final_class_part_lib.dart +++ b/tests/language/class_modifiers/final/final_class_part_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Library declarations used by final_class_part_test.dart. part of 'final_class_part_test.dart'; diff --git a/tests/language/class_modifiers/final/final_class_part_test.dart b/tests/language/class_modifiers/final/final_class_part_test.dart index 01c3e554aeb..16ce206c195 100644 --- a/tests/language/class_modifiers/final/final_class_part_test.dart +++ b/tests/language/class_modifiers/final/final_class_part_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow extending and implementing final classes in a part file of // the same library diff --git a/tests/language/class_modifiers/final/final_class_subtype_base_final_or_sealed_test.dart b/tests/language/class_modifiers/final/final_class_subtype_base_final_or_sealed_test.dart index 6940d4d906e..59bfcd7be4a 100644 --- a/tests/language/class_modifiers/final/final_class_subtype_base_final_or_sealed_test.dart +++ b/tests/language/class_modifiers/final/final_class_subtype_base_final_or_sealed_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers,sealed-class - // Allow final mixins/classes to be subtyped by base, final, or sealed // classes/mixins and produce no error. diff --git a/tests/language/class_modifiers/final/final_class_typedef_lib.dart b/tests/language/class_modifiers/final/final_class_typedef_lib.dart index 5caa05e5123..6c56675917d 100644 --- a/tests/language/class_modifiers/final/final_class_typedef_lib.dart +++ b/tests/language/class_modifiers/final/final_class_typedef_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by // final_class_typedef_subtype_error_test.dart and // final_class_typedef_test.dart. diff --git a/tests/language/class_modifiers/final/final_class_typedef_outside_of_library_lib.dart b/tests/language/class_modifiers/final/final_class_typedef_outside_of_library_lib.dart index c2e3d506087..03ef285db32 100644 --- a/tests/language/class_modifiers/final/final_class_typedef_outside_of_library_lib.dart +++ b/tests/language/class_modifiers/final/final_class_typedef_outside_of_library_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by // final_class_typedef_outside_of_library_test.dart. diff --git a/tests/language/class_modifiers/final/final_class_typedef_outside_of_library_lib2.dart b/tests/language/class_modifiers/final/final_class_typedef_outside_of_library_lib2.dart index a7505ead459..0fdd5687792 100644 --- a/tests/language/class_modifiers/final/final_class_typedef_outside_of_library_lib2.dart +++ b/tests/language/class_modifiers/final/final_class_typedef_outside_of_library_lib2.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by // final_class_typedef_outside_of_library_test.dart. diff --git a/tests/language/class_modifiers/final/final_class_typedef_outside_of_library_test.dart b/tests/language/class_modifiers/final/final_class_typedef_outside_of_library_test.dart index e04ea84b684..8a557d42b19 100644 --- a/tests/language/class_modifiers/final/final_class_typedef_outside_of_library_test.dart +++ b/tests/language/class_modifiers/final/final_class_typedef_outside_of_library_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow typedef in different library, used by class in library. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/final/final_class_typedef_subtype_error_test.dart b/tests/language/class_modifiers/final/final_class_typedef_subtype_error_test.dart index e0f347a261c..e1b19027e0b 100644 --- a/tests/language/class_modifiers/final/final_class_typedef_subtype_error_test.dart +++ b/tests/language/class_modifiers/final/final_class_typedef_subtype_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when attempting to implement or extend a typedef final class outside of // its library. diff --git a/tests/language/class_modifiers/final/final_class_typedef_test.dart b/tests/language/class_modifiers/final/final_class_typedef_test.dart index 3ef1dcfd6b5..2b3295c9c3a 100644 --- a/tests/language/class_modifiers/final/final_class_typedef_test.dart +++ b/tests/language/class_modifiers/final/final_class_typedef_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow typedef final classes to be extended and implemented by // multiple classes in the same library. diff --git a/tests/language/class_modifiers/final/final_class_typedef_used_outside_error_test.dart b/tests/language/class_modifiers/final/final_class_typedef_used_outside_error_test.dart index 23f2b5b1d2a..46af5599cc4 100644 --- a/tests/language/class_modifiers/final/final_class_typedef_used_outside_error_test.dart +++ b/tests/language/class_modifiers/final/final_class_typedef_used_outside_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when trying to implement or extend a typedef final class outside of // the final class' library when the typedef is also outside the final class // library. diff --git a/tests/language/class_modifiers/final/final_class_typedef_used_outside_lib.dart b/tests/language/class_modifiers/final/final_class_typedef_used_outside_lib.dart index 655ea8bf897..deb491c7c23 100644 --- a/tests/language/class_modifiers/final/final_class_typedef_used_outside_lib.dart +++ b/tests/language/class_modifiers/final/final_class_typedef_used_outside_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by // final_class_typedef_used_outside_error_test.dart. diff --git a/tests/language/class_modifiers/final/final_class_with_base_outside_test.dart b/tests/language/class_modifiers/final/final_class_with_base_outside_test.dart index b9f1ec0ee26..964dbf69ce3 100644 --- a/tests/language/class_modifiers/final/final_class_with_base_outside_test.dart +++ b/tests/language/class_modifiers/final/final_class_with_base_outside_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow `final` class with a `base` mixin outside its library. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/interface/interface_class_abstract_construct_error_test.dart b/tests/language/class_modifiers/interface/interface_class_abstract_construct_error_test.dart index 986e3a10eec..d92b3e30897 100644 --- a/tests/language/class_modifiers/interface/interface_class_abstract_construct_error_test.dart +++ b/tests/language/class_modifiers/interface/interface_class_abstract_construct_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when attempting to construct an abstract interface class. abstract interface class NotConstructable {} diff --git a/tests/language/class_modifiers/interface/interface_class_extend_lib.dart b/tests/language/class_modifiers/interface/interface_class_extend_lib.dart index 6f00e176424..2cbab7b5ecd 100644 --- a/tests/language/class_modifiers/interface/interface_class_extend_lib.dart +++ b/tests/language/class_modifiers/interface/interface_class_extend_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow interface classes to be extended by multiple classes in the same // library. diff --git a/tests/language/class_modifiers/interface/interface_class_extend_outside_error_test.dart b/tests/language/class_modifiers/interface/interface_class_extend_outside_error_test.dart index 013c89bf148..a597b1c16d3 100644 --- a/tests/language/class_modifiers/interface/interface_class_extend_outside_error_test.dart +++ b/tests/language/class_modifiers/interface/interface_class_extend_outside_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when attempting to extend an interface class outside of library. import 'interface_class_extend_lib.dart'; diff --git a/tests/language/class_modifiers/interface/interface_class_extend_test.dart b/tests/language/class_modifiers/interface/interface_class_extend_test.dart index c92d280115c..673a6b7c706 100644 --- a/tests/language/class_modifiers/interface/interface_class_extend_test.dart +++ b/tests/language/class_modifiers/interface/interface_class_extend_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow interface classes to be extended by multiple classes inside its // library. diff --git a/tests/language/class_modifiers/interface/interface_class_implement_lib.dart b/tests/language/class_modifiers/interface/interface_class_implement_lib.dart index d91b4312f81..45406caecc3 100644 --- a/tests/language/class_modifiers/interface/interface_class_implement_lib.dart +++ b/tests/language/class_modifiers/interface/interface_class_implement_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow interface classes to be implemented by multiple classes in the same // library. diff --git a/tests/language/class_modifiers/interface/interface_class_implement_outside_test.dart b/tests/language/class_modifiers/interface/interface_class_implement_outside_test.dart index dad51d54cfc..c973bddf74b 100644 --- a/tests/language/class_modifiers/interface/interface_class_implement_outside_test.dart +++ b/tests/language/class_modifiers/interface/interface_class_implement_outside_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow interface classes to be implemented by multiple classes outside its // library. diff --git a/tests/language/class_modifiers/interface/interface_class_implement_test.dart b/tests/language/class_modifiers/interface/interface_class_implement_test.dart index 6eb43a98ce1..b7ab4285cc4 100644 --- a/tests/language/class_modifiers/interface/interface_class_implement_test.dart +++ b/tests/language/class_modifiers/interface/interface_class_implement_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow interface classes to be implemented by multiple classes inside its // library. diff --git a/tests/language/class_modifiers/interface/interface_class_interface_subtype_test.dart b/tests/language/class_modifiers/interface/interface_class_interface_subtype_test.dart index 4c5b6e0c526..fd5270bd9ff 100644 --- a/tests/language/class_modifiers/interface/interface_class_interface_subtype_test.dart +++ b/tests/language/class_modifiers/interface/interface_class_interface_subtype_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow subtypes of an interface class or mixin to be interface as well. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/interface/interface_class_mixin_on_lib.dart b/tests/language/class_modifiers/interface/interface_class_mixin_on_lib.dart index bbd333500d5..826a79277a8 100644 --- a/tests/language/class_modifiers/interface/interface_class_mixin_on_lib.dart +++ b/tests/language/class_modifiers/interface/interface_class_mixin_on_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by interface_class_mixin_on_test.dart. interface class InterfaceClass {} diff --git a/tests/language/class_modifiers/interface/interface_class_mixin_on_test.dart b/tests/language/class_modifiers/interface/interface_class_mixin_on_test.dart index 5ccfacf36c4..cb5ffe873a2 100644 --- a/tests/language/class_modifiers/interface/interface_class_mixin_on_test.dart +++ b/tests/language/class_modifiers/interface/interface_class_mixin_on_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow an interface type to appear in the "on" clause of a mixin declaration // in another library. diff --git a/tests/language/class_modifiers/interface/interface_class_part_lib.dart b/tests/language/class_modifiers/interface/interface_class_part_lib.dart index e657c40b70e..3262e5228da 100644 --- a/tests/language/class_modifiers/interface/interface_class_part_lib.dart +++ b/tests/language/class_modifiers/interface/interface_class_part_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by interface_class_part_test.dart. part of 'interface_class_part_test.dart'; diff --git a/tests/language/class_modifiers/interface/interface_class_part_test.dart b/tests/language/class_modifiers/interface/interface_class_part_test.dart index e1a0df25c16..ea75c1e855d 100644 --- a/tests/language/class_modifiers/interface/interface_class_part_test.dart +++ b/tests/language/class_modifiers/interface/interface_class_part_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow extending and implementing interface classes in a part file of // the same library diff --git a/tests/language/class_modifiers/interface/interface_class_typedef_extend_error_test.dart b/tests/language/class_modifiers/interface/interface_class_typedef_extend_error_test.dart index 8b592d2da2d..f54bd333410 100644 --- a/tests/language/class_modifiers/interface/interface_class_typedef_extend_error_test.dart +++ b/tests/language/class_modifiers/interface/interface_class_typedef_extend_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when attempting to extend typedef interface class outside of its // library. diff --git a/tests/language/class_modifiers/interface/interface_class_typedef_lib.dart b/tests/language/class_modifiers/interface/interface_class_typedef_lib.dart index 1015555a58d..77bdb559078 100644 --- a/tests/language/class_modifiers/interface/interface_class_typedef_lib.dart +++ b/tests/language/class_modifiers/interface/interface_class_typedef_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other library declarations used by // interface_class_typedef_extend_error_test.dart. diff --git a/tests/language/class_modifiers/interface/interface_class_typedef_outside_of_library_lib.dart b/tests/language/class_modifiers/interface/interface_class_typedef_outside_of_library_lib.dart index f22c80e379a..d76b38b740e 100644 --- a/tests/language/class_modifiers/interface/interface_class_typedef_outside_of_library_lib.dart +++ b/tests/language/class_modifiers/interface/interface_class_typedef_outside_of_library_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by // interface_class_typedef_outside_of_library_test.dart. diff --git a/tests/language/class_modifiers/interface/interface_class_typedef_outside_of_library_lib2.dart b/tests/language/class_modifiers/interface/interface_class_typedef_outside_of_library_lib2.dart index 61242e01466..b3631d63929 100644 --- a/tests/language/class_modifiers/interface/interface_class_typedef_outside_of_library_lib2.dart +++ b/tests/language/class_modifiers/interface/interface_class_typedef_outside_of_library_lib2.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by // interface_class_typedef_outside_of_library_test.dart. diff --git a/tests/language/class_modifiers/interface/interface_class_typedef_outside_of_library_test.dart b/tests/language/class_modifiers/interface/interface_class_typedef_outside_of_library_test.dart index 2930be4fef0..deb16263a81 100644 --- a/tests/language/class_modifiers/interface/interface_class_typedef_outside_of_library_test.dart +++ b/tests/language/class_modifiers/interface/interface_class_typedef_outside_of_library_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow typedef in different library, used by class in library. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/interface/interface_class_typedef_test.dart b/tests/language/class_modifiers/interface/interface_class_typedef_test.dart index 4c30657179d..0fddb431f11 100644 --- a/tests/language/class_modifiers/interface/interface_class_typedef_test.dart +++ b/tests/language/class_modifiers/interface/interface_class_typedef_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow typedef interface classes to be extended and implemented by // multiple classes in the same library. diff --git a/tests/language/class_modifiers/interface/interface_class_typedef_used_outside_error_test.dart b/tests/language/class_modifiers/interface/interface_class_typedef_used_outside_error_test.dart index e462eb57b5f..aa7d8a4621c 100644 --- a/tests/language/class_modifiers/interface/interface_class_typedef_used_outside_error_test.dart +++ b/tests/language/class_modifiers/interface/interface_class_typedef_used_outside_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when trying to extend a typedef interface class outside of // the interface class' library when the typedef is also outside the interface // class library. diff --git a/tests/language/class_modifiers/interface/interface_class_typedef_used_outside_lib.dart b/tests/language/class_modifiers/interface/interface_class_typedef_used_outside_lib.dart index 699ac79126f..274be188488 100644 --- a/tests/language/class_modifiers/interface/interface_class_typedef_used_outside_lib.dart +++ b/tests/language/class_modifiers/interface/interface_class_typedef_used_outside_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by // interface_class_typedef_used_outside_error_test.dart. diff --git a/tests/language/class_modifiers/legacy/base_class_syntax_disabled_error_test.dart b/tests/language/class_modifiers/legacy/base_class_syntax_disabled_error_test.dart index c607420544d..fbaa1675e8d 100644 --- a/tests/language/class_modifiers/legacy/base_class_syntax_disabled_error_test.dart +++ b/tests/language/class_modifiers/legacy/base_class_syntax_disabled_error_test.dart @@ -1,8 +1,6 @@ // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file // 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. - -// SharedOptions=--enable-experiment=class-modifiers // @dart = 2.19 // Make sure errors are emitted when trying to use base classes without diff --git a/tests/language/class_modifiers/legacy/final_class_syntax_disabled_error_test.dart b/tests/language/class_modifiers/legacy/final_class_syntax_disabled_error_test.dart index 81cfecd3800..260778dc910 100644 --- a/tests/language/class_modifiers/legacy/final_class_syntax_disabled_error_test.dart +++ b/tests/language/class_modifiers/legacy/final_class_syntax_disabled_error_test.dart @@ -1,8 +1,6 @@ // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file // 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. - -// SharedOptions=--enable-experiment=class-modifiers // @dart = 2.19 // Make sure errors are emitted when trying to use final classes without diff --git a/tests/language/class_modifiers/legacy/interface_class_syntax_disabled_error_test.dart b/tests/language/class_modifiers/legacy/interface_class_syntax_disabled_error_test.dart index 1c12647932c..5ad417807a5 100644 --- a/tests/language/class_modifiers/legacy/interface_class_syntax_disabled_error_test.dart +++ b/tests/language/class_modifiers/legacy/interface_class_syntax_disabled_error_test.dart @@ -1,8 +1,6 @@ // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file // 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. - -// SharedOptions=--enable-experiment=class-modifiers // @dart = 2.19 // Make sure errors are emitted when trying to use interface classes without diff --git a/tests/language/class_modifiers/legacy/mixin_class_syntax_disabled_error_test.dart b/tests/language/class_modifiers/legacy/mixin_class_syntax_disabled_error_test.dart index 7d4074edf15..52cb85ab7a5 100644 --- a/tests/language/class_modifiers/legacy/mixin_class_syntax_disabled_error_test.dart +++ b/tests/language/class_modifiers/legacy/mixin_class_syntax_disabled_error_test.dart @@ -1,8 +1,6 @@ // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file // 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. - -// SharedOptions=--enable-experiment=class-modifiers // @dart = 2.19 // Make sure errors are emitted when trying to use mixin classes without diff --git a/tests/language/class_modifiers/mixin/mixin_class_base_test.dart b/tests/language/class_modifiers/mixin/mixin_class_base_test.dart index 9fc0227f9f4..a66a3ea4bb9 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_base_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_base_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow base mixin classes. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/mixin/mixin_class_generative_constructor_error_test.dart b/tests/language/class_modifiers/mixin/mixin_class_generative_constructor_error_test.dart index dd3a847db3a..58d9435183a 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_generative_constructor_error_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_generative_constructor_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when applying the mixin modifier to a class that declares a generative // constructor diff --git a/tests/language/class_modifiers/mixin/mixin_class_generative_constructor_trivial_test.dart b/tests/language/class_modifiers/mixin/mixin_class_generative_constructor_trivial_test.dart index 3428e4ea1b8..00106087a76 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_generative_constructor_trivial_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_generative_constructor_trivial_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow trivial generative constructors in mixin classes. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/mixin/mixin_class_inside_library_test.dart b/tests/language/class_modifiers/mixin/mixin_class_inside_library_test.dart index 941e496ffba..a27549c3d1e 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_inside_library_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_inside_library_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Mixing in a mixin class inside its library. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/mixin/mixin_class_invalid_modifier_error_test.dart b/tests/language/class_modifiers/mixin/mixin_class_invalid_modifier_error_test.dart index 2dd8efcf4bd..c4920212ec9 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_invalid_modifier_error_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_invalid_modifier_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers,sealed-class - // Error when applying any other modifier to mixin classes other than base. final mixin class A {} diff --git a/tests/language/class_modifiers/mixin/mixin_class_legacy_interactions_forward_error_test.dart b/tests/language/class_modifiers/mixin/mixin_class_legacy_interactions_forward_error_test.dart index 3b39d1d9760..5eae7e5102f 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_legacy_interactions_forward_error_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_legacy_interactions_forward_error_test.dart @@ -4,8 +4,6 @@ // @dart=2.19 -// SharedOptions=--enable-experiment=class-modifiers - // Test the behavior of mixing in classes defined in a 3.0 library (both SDK // and non SDK) when the mixin happens in a pre 3.0 library. diff --git a/tests/language/class_modifiers/mixin/mixin_class_legacy_interactions_reverse_error_test.dart b/tests/language/class_modifiers/mixin/mixin_class_legacy_interactions_reverse_error_test.dart index 670e4252aaf..fd8e4d9b841 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_legacy_interactions_reverse_error_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_legacy_interactions_reverse_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Test the behavior of mixing in classes defined in a pre 3.0 library // when the mixin happens in a 3.0 library. diff --git a/tests/language/class_modifiers/mixin/mixin_class_lib.dart b/tests/language/class_modifiers/mixin/mixin_class_lib.dart index 40724179ca9..d9b3d0c6848 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_lib.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - mixin class Class { int foo = 0; } diff --git a/tests/language/class_modifiers/mixin/mixin_class_no_modifier_inside_library_error_test.dart b/tests/language/class_modifiers/mixin/mixin_class_no_modifier_inside_library_error_test.dart index f4f899c5ff2..4ef29c1cac9 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_no_modifier_inside_library_error_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_no_modifier_inside_library_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when mixing in a regular class inside its library. class Class { diff --git a/tests/language/class_modifiers/mixin/mixin_class_no_modifier_lib.dart b/tests/language/class_modifiers/mixin/mixin_class_no_modifier_lib.dart index 8e42de27805..025776c5b12 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_no_modifier_lib.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_no_modifier_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by // mixin_class_no_modifier_outside_library_error_test.dart. diff --git a/tests/language/class_modifiers/mixin/mixin_class_no_modifier_old_version_generative_constructor_error_test.dart b/tests/language/class_modifiers/mixin/mixin_class_no_modifier_old_version_generative_constructor_error_test.dart index 267bbf10af3..b1c10a375d3 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_no_modifier_old_version_generative_constructor_error_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_no_modifier_old_version_generative_constructor_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when mixing in a regular class from a library older than 3.0 where the // class is outside and that class declares a generative constructor diff --git a/tests/language/class_modifiers/mixin/mixin_class_no_modifier_old_version_superclass_not_object_error_test.dart b/tests/language/class_modifiers/mixin/mixin_class_no_modifier_old_version_superclass_not_object_error_test.dart index 272d2739eef..858f8c10221 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_no_modifier_old_version_superclass_not_object_error_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_no_modifier_old_version_superclass_not_object_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when mixing in a regular class from a library older than 3.0 where the // class is outside and it has a superclass that's not Object diff --git a/tests/language/class_modifiers/mixin/mixin_class_no_modifier_old_version_test.dart b/tests/language/class_modifiers/mixin/mixin_class_no_modifier_old_version_test.dart index b324e46e2e9..aac0f3961cb 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_no_modifier_old_version_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_no_modifier_old_version_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow mixing in a class outside of library when the version of the // library of the class being mixed-in is older than the version that // `class-modifier` is being shipped in. diff --git a/tests/language/class_modifiers/mixin/mixin_class_no_modifier_outside_library_error_test.dart b/tests/language/class_modifiers/mixin/mixin_class_no_modifier_outside_library_error_test.dart index b4f0c76dc50..8bf3aa8fcd3 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_no_modifier_outside_library_error_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_no_modifier_outside_library_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error mixing in a regular class outside its library. import 'mixin_class_no_modifier_lib.dart'; diff --git a/tests/language/class_modifiers/mixin/mixin_class_on_inside_library_test.dart b/tests/language/class_modifiers/mixin/mixin_class_on_inside_library_test.dart index 7b4fb42194e..236ccce0048 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_on_inside_library_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_on_inside_library_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Make sure mixin classes can be used in an on clause for another mixin inside // of its library. diff --git a/tests/language/class_modifiers/mixin/mixin_class_on_outside_library_test.dart b/tests/language/class_modifiers/mixin/mixin_class_on_outside_library_test.dart index 91e66991879..b8d2a58d5ff 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_on_outside_library_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_on_outside_library_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Make sure mixin classes can be used in an on clause for another mixin outside // of its library. diff --git a/tests/language/class_modifiers/mixin/mixin_class_outside_library_test.dart b/tests/language/class_modifiers/mixin/mixin_class_outside_library_test.dart index 373ddad866b..35cffffdc76 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_outside_library_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_outside_library_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Mixing in a mixin class outside its library. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/mixin/mixin_class_part_lib.dart b/tests/language/class_modifiers/mixin/mixin_class_part_lib.dart index ae8463ab13a..ac81ea46dab 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_part_lib.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_part_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by mixin_class_part_test.dart. part of 'mixin_class_part_test.dart'; diff --git a/tests/language/class_modifiers/mixin/mixin_class_part_test.dart b/tests/language/class_modifiers/mixin/mixin_class_part_test.dart index 3f93faff20f..12128e7eb87 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_part_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_part_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow mixing-in mixin classes and non-mixin classes in a part file of the // same library. diff --git a/tests/language/class_modifiers/mixin/mixin_class_superclass_not_object_error_test.dart b/tests/language/class_modifiers/mixin/mixin_class_superclass_not_object_error_test.dart index 8880a47907b..25d91bdb495 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_superclass_not_object_error_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_superclass_not_object_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Error when applying the mixin modifier to a class whose superclass is not // Object. diff --git a/tests/language/class_modifiers/mixin/mixin_class_syntax_error_test.dart b/tests/language/class_modifiers/mixin/mixin_class_syntax_error_test.dart index c950828d892..76b4aec6216 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_syntax_error_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_syntax_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Syntax errors such as using `mixin` keyword in a place other than a class or // mixin. diff --git a/tests/language/class_modifiers/mixin/mixin_class_typedef_lib.dart b/tests/language/class_modifiers/mixin/mixin_class_typedef_lib.dart index 281f0cc9e1e..501a8717f80 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_typedef_lib.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_typedef_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by mixin_class_typedef_test.dart. mixin class MixinClass { diff --git a/tests/language/class_modifiers/mixin/mixin_class_typedef_outside_of_library_lib.dart b/tests/language/class_modifiers/mixin/mixin_class_typedef_outside_of_library_lib.dart index 1efdb24ac8f..24de811788b 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_typedef_outside_of_library_lib.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_typedef_outside_of_library_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by // mixin_class_typedef_outside_of_library_test.dart. diff --git a/tests/language/class_modifiers/mixin/mixin_class_typedef_outside_of_library_lib2.dart b/tests/language/class_modifiers/mixin/mixin_class_typedef_outside_of_library_lib2.dart index 121f9be58df..baffae7dcd0 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_typedef_outside_of_library_lib2.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_typedef_outside_of_library_lib2.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by // mixin_class_typedef_outside_of_library_test.dart. diff --git a/tests/language/class_modifiers/mixin/mixin_class_typedef_outside_of_library_test.dart b/tests/language/class_modifiers/mixin/mixin_class_typedef_outside_of_library_test.dart index 00e454c2210..eb8fc2a0f64 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_typedef_outside_of_library_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_typedef_outside_of_library_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow typedef in different library, used by class in library. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/mixin/mixin_class_typedef_test.dart b/tests/language/class_modifiers/mixin/mixin_class_typedef_test.dart index 1ab124ea7c3..3b4ab311712 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_typedef_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_typedef_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow typedef mixin classes to be mixed in by classes in the same library. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/mixin/mixin_class_typedef_used_outside_lib.dart b/tests/language/class_modifiers/mixin/mixin_class_typedef_used_outside_lib.dart index 1fba931ecc0..b2c0f12310b 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_typedef_used_outside_lib.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_typedef_used_outside_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Other-library declarations used by // mixin_class_typedef_used_outside_test.dart. diff --git a/tests/language/class_modifiers/mixin/mixin_class_typedef_used_outside_test.dart b/tests/language/class_modifiers/mixin/mixin_class_typedef_used_outside_test.dart index ab1a0dc7a95..5b41bb65868 100644 --- a/tests/language/class_modifiers/mixin/mixin_class_typedef_used_outside_test.dart +++ b/tests/language/class_modifiers/mixin/mixin_class_typedef_used_outside_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - // Allow typedefs to be outside the mixed-in class' library. import 'package:expect/expect.dart'; diff --git a/tests/language/class_modifiers/trans_legacy/legacy_lib.dart b/tests/language/class_modifiers/trans_legacy/legacy_lib.dart index 9e0470e37db..3f30bdb75c3 100644 --- a/tests/language/class_modifiers/trans_legacy/legacy_lib.dart +++ b/tests/language/class_modifiers/trans_legacy/legacy_lib.dart @@ -3,8 +3,6 @@ // BSD-style license that can be found in the LICENSE file. // @dart=2.19 -// SharedOptions=--enable-experiment=class-modifiers - import "dart:async"; import "dart:collection"; diff --git a/tests/language/class_modifiers/trans_legacy/legacy_superdeclaration_error_test.dart b/tests/language/class_modifiers/trans_legacy/legacy_superdeclaration_error_test.dart index 6069762ff90..f8d6deb0779 100644 --- a/tests/language/class_modifiers/trans_legacy/legacy_superdeclaration_error_test.dart +++ b/tests/language/class_modifiers/trans_legacy/legacy_superdeclaration_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - import "legacy_lib.dart"; // Not allowed to implement a class (from anywhere) which has a base/final diff --git a/tests/language/class_modifiers/trans_legacy/legacy_superdeclaration_test.dart b/tests/language/class_modifiers/trans_legacy/legacy_superdeclaration_test.dart index 23671d2a7da..9214441064f 100644 --- a/tests/language/class_modifiers/trans_legacy/legacy_superdeclaration_test.dart +++ b/tests/language/class_modifiers/trans_legacy/legacy_superdeclaration_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - import "legacy_lib.dart"; // Can extend any class in legacy library. @@ -96,4 +94,4 @@ abstract class ImplementsLegacyExtendsInterface // Helpers mixin _AnyMixin {} -void main() {} \ No newline at end of file +void main() {} diff --git a/tests/language/const/primitive_equality_error_test.dart b/tests/language/const/primitive_equality_error_test.dart index 5f465bd8563..99eff1860c0 100644 --- a/tests/language/const/primitive_equality_error_test.dart +++ b/tests/language/const/primitive_equality_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - // Verify that the use of a constant expression denoting an object that does // not have primitive equality in a constant set or as a key of a constant map // gives rise to a compile-time error. diff --git a/tests/language/const/primitive_equality_test.dart b/tests/language/const/primitive_equality_test.dart index 1a5e87466d2..640b79e99f1 100644 --- a/tests/language/const/primitive_equality_test.dart +++ b/tests/language/const/primitive_equality_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=records - // Verify that the use of a constant expression denoting an object that has // primitive equality in a constant set or as a key of a constant map is // accepted. diff --git a/tests/language/constants_2018/equals_test.dart b/tests/language/constants_2018/equals_test.dart index bb0bf2833e6..1610c4505a8 100644 --- a/tests/language/constants_2018/equals_test.dart +++ b/tests/language/constants_2018/equals_test.dart @@ -4,8 +4,6 @@ // Tests that equality is allowed for receivers of specific types. -// SharedOptions=--enable-experiment=patterns,records - import "package:expect/expect.dart"; main() { diff --git a/tests/language/constructor/explicit_instantiation_syntax_test.dart b/tests/language/constructor/explicit_instantiation_syntax_test.dart index e6864b70eff..0556da9b785 100644 --- a/tests/language/constructor/explicit_instantiation_syntax_test.dart +++ b/tests/language/constructor/explicit_instantiation_syntax_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - import 'dart:core' hide dynamic; import 'dart:core' as core show dynamic; diff --git a/tests/language/implicit_creation/implicit_const_context_constructor_generic_named_test.dart b/tests/language/implicit_creation/implicit_const_context_constructor_generic_named_test.dart index ea39717bf34..c71f33082d1 100644 --- a/tests/language/implicit_creation/implicit_const_context_constructor_generic_named_test.dart +++ b/tests/language/implicit_creation/implicit_const_context_constructor_generic_named_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - import "package:expect/expect.dart"; // Test that constructor invocations are constant diff --git a/tests/language/implicit_creation/implicit_const_context_constructor_generic_test.dart b/tests/language/implicit_creation/implicit_const_context_constructor_generic_test.dart index 9dc28f9facb..3b9c7c23906 100644 --- a/tests/language/implicit_creation/implicit_const_context_constructor_generic_test.dart +++ b/tests/language/implicit_creation/implicit_const_context_constructor_generic_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - import "package:expect/expect.dart"; // Test that constructor invocations are constant diff --git a/tests/language/implicit_creation/implicit_const_context_constructor_named_test.dart b/tests/language/implicit_creation/implicit_const_context_constructor_named_test.dart index 96c40935424..260f48d3269 100644 --- a/tests/language/implicit_creation/implicit_const_context_constructor_named_test.dart +++ b/tests/language/implicit_creation/implicit_const_context_constructor_named_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - import "package:expect/expect.dart"; // Test that constructor invocations are constant diff --git a/tests/language/implicit_creation/implicit_const_context_constructor_test.dart b/tests/language/implicit_creation/implicit_const_context_constructor_test.dart index cdfe7177bb6..cfed6cc98f3 100644 --- a/tests/language/implicit_creation/implicit_const_context_constructor_test.dart +++ b/tests/language/implicit_creation/implicit_const_context_constructor_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - import "package:expect/expect.dart"; // Test that constructor invocations are constant diff --git a/tests/language/implicit_creation/implicit_const_context_list_test.dart b/tests/language/implicit_creation/implicit_const_context_list_test.dart index 0ccead59230..735589cec22 100644 --- a/tests/language/implicit_creation/implicit_const_context_list_test.dart +++ b/tests/language/implicit_creation/implicit_const_context_list_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - import "package:expect/expect.dart"; // Test that list literals are constant when evaluated in a const context. diff --git a/tests/language/implicit_creation/implicit_const_context_map_test.dart b/tests/language/implicit_creation/implicit_const_context_map_test.dart index cc53df61e6c..9ee99d98222 100644 --- a/tests/language/implicit_creation/implicit_const_context_map_test.dart +++ b/tests/language/implicit_creation/implicit_const_context_map_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - import "package:expect/expect.dart"; // Test that map literals are constant when evaluated in a const context. diff --git a/tests/language/implicit_creation/implicit_const_context_prefix_constructor_generic_named_test.dart b/tests/language/implicit_creation/implicit_const_context_prefix_constructor_generic_named_test.dart index ff64a7c9820..3a9b07417b0 100644 --- a/tests/language/implicit_creation/implicit_const_context_prefix_constructor_generic_named_test.dart +++ b/tests/language/implicit_creation/implicit_const_context_prefix_constructor_generic_named_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - import "package:expect/expect.dart"; import "implicit_const_context_prefix_constructor_generic_named_test.dart" diff --git a/tests/language/implicit_creation/implicit_const_context_prefix_constructor_generic_test.dart b/tests/language/implicit_creation/implicit_const_context_prefix_constructor_generic_test.dart index e63bd6055ba..39461b6a227 100644 --- a/tests/language/implicit_creation/implicit_const_context_prefix_constructor_generic_test.dart +++ b/tests/language/implicit_creation/implicit_const_context_prefix_constructor_generic_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - import "package:expect/expect.dart"; import "implicit_const_context_prefix_constructor_generic_test.dart" as prefix; diff --git a/tests/language/implicit_creation/implicit_const_context_prefix_constructor_named_test.dart b/tests/language/implicit_creation/implicit_const_context_prefix_constructor_named_test.dart index 345c168bede..a710f2ace2b 100644 --- a/tests/language/implicit_creation/implicit_const_context_prefix_constructor_named_test.dart +++ b/tests/language/implicit_creation/implicit_const_context_prefix_constructor_named_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - import "package:expect/expect.dart"; import "implicit_const_context_prefix_constructor_named_test.dart" as prefix; diff --git a/tests/language/implicit_creation/implicit_const_context_prefix_constructor_test.dart b/tests/language/implicit_creation/implicit_const_context_prefix_constructor_test.dart index f911e01a167..f6c4b21c859 100644 --- a/tests/language/implicit_creation/implicit_const_context_prefix_constructor_test.dart +++ b/tests/language/implicit_creation/implicit_const_context_prefix_constructor_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - import "package:expect/expect.dart"; import "implicit_const_context_prefix_constructor_test.dart" as prefix; diff --git a/tests/language/patterns/call_tear_off_error_test.dart b/tests/language/patterns/call_tear_off_error_test.dart index fcafc59b564..9e5b43bfca6 100644 --- a/tests/language/patterns/call_tear_off_error_test.dart +++ b/tests/language/patterns/call_tear_off_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - /// Test that implicit call tear-offs are inserted based on the pattern's /// context type, but not when destructuring. diff --git a/tests/language/patterns/call_tear_off_test.dart b/tests/language/patterns/call_tear_off_test.dart index e5a90288a7e..d769e4e0257 100644 --- a/tests/language/patterns/call_tear_off_test.dart +++ b/tests/language/patterns/call_tear_off_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - /// Test that implicit call tear-offs are inserted based on the pattern's /// context type, but not when destructuring. diff --git a/tests/language/patterns/cast_from_dynamic_test.dart b/tests/language/patterns/cast_from_dynamic_test.dart index 5b7791639e0..c837627af5f 100644 --- a/tests/language/patterns/cast_from_dynamic_test.dart +++ b/tests/language/patterns/cast_from_dynamic_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - /// Test various places that implicit casts from dynamic can be inserted in /// patterns and what happens when those casts succeed and fail. diff --git a/tests/language/patterns/declared_variable_in_pattern_assignment_error_test.dart b/tests/language/patterns/declared_variable_in_pattern_assignment_error_test.dart index 0b6aea6d2d1..86cbbbab205 100644 --- a/tests/language/patterns/declared_variable_in_pattern_assignment_error_test.dart +++ b/tests/language/patterns/declared_variable_in_pattern_assignment_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // Test that the proper errors are generated if a declared variable appears // inside a pattern assignment. diff --git a/tests/language/patterns/empty_switch_expression_test.dart b/tests/language/patterns/empty_switch_expression_test.dart index c38b9ad2799..c8d44f05f5f 100644 --- a/tests/language/patterns/empty_switch_expression_test.dart +++ b/tests/language/patterns/empty_switch_expression_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - /// Test that switch expressions are allowed to be empty, and that they have the /// proper static type behavior. /// diff --git a/tests/language/patterns/empty_switch_expression_weak_test.dart b/tests/language/patterns/empty_switch_expression_weak_test.dart index bf8375c4a1d..bca96a4f9f2 100644 --- a/tests/language/patterns/empty_switch_expression_weak_test.dart +++ b/tests/language/patterns/empty_switch_expression_weak_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - // Requirements=nnbd-weak /// Test that switch expressions are allowed to be empty, and that they have the diff --git a/tests/language/patterns/exhaustiveness/bool_switch_test.dart b/tests/language/patterns/exhaustiveness/bool_switch_test.dart index 4b01bda7515..cd5660cd6e5 100644 --- a/tests/language/patterns/exhaustiveness/bool_switch_test.dart +++ b/tests/language/patterns/exhaustiveness/bool_switch_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - void exhaustiveSwitch(bool b) { switch (b) /* Ok */ { case true: diff --git a/tests/language/patterns/exhaustiveness/enum_switch_test.dart b/tests/language/patterns/exhaustiveness/enum_switch_test.dart index a7c7f965557..1631d94dd04 100644 --- a/tests/language/patterns/exhaustiveness/enum_switch_test.dart +++ b/tests/language/patterns/exhaustiveness/enum_switch_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - enum Enum { a, b, c } void exhaustiveSwitch(Enum e) { diff --git a/tests/language/patterns/exhaustiveness/fallback_error_test.dart b/tests/language/patterns/exhaustiveness/fallback_error_test.dart index b38ce2ad4dd..144bb6d70a6 100644 --- a/tests/language/patterns/exhaustiveness/fallback_error_test.dart +++ b/tests/language/patterns/exhaustiveness/fallback_error_test.dart @@ -14,8 +14,6 @@ // With the enabling of the real exhaustiveness algorithm, these switches should // in most cases no longer cause errors. -// SharedOptions=--enable-experiment=patterns --enable-experiment=records --enable-experiment=sealed-class - sealed class A {} class B extends A {} class C extends A {} diff --git a/tests/language/patterns/exhaustiveness/fallback_test.dart b/tests/language/patterns/exhaustiveness/fallback_test.dart index 6a0b76a4796..fdabab609a5 100644 --- a/tests/language/patterns/exhaustiveness/fallback_test.dart +++ b/tests/language/patterns/exhaustiveness/fallback_test.dart @@ -14,8 +14,6 @@ // With the enabling of the real exhaustiveness algorithm, these switches should // still not cause errors. -// SharedOptions=--enable-experiment=patterns --enable-experiment=records - import 'dart:async'; enum E { diff --git a/tests/language/patterns/exhaustiveness/list_constant_test.dart b/tests/language/patterns/exhaustiveness/list_constant_test.dart index 46d8f02d0b9..a95bcdc20cc 100644 --- a/tests/language/patterns/exhaustiveness/list_constant_test.dart +++ b/tests/language/patterns/exhaustiveness/list_constant_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // An empty constant list (not empty list pattern) is not treated as covering // empty lists when it comes to exhaustiveness. diff --git a/tests/language/patterns/exhaustiveness/null_type_test.dart b/tests/language/patterns/exhaustiveness/null_type_test.dart index 9e3011909b9..555ebf96c35 100644 --- a/tests/language/patterns/exhaustiveness/null_type_test.dart +++ b/tests/language/patterns/exhaustiveness/null_type_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // Test that a both a Null-typed variable pattern and a `null` literal pattern // will cover the null part of a nullable type. diff --git a/tests/language/patterns/exhaustiveness/object_pattern_switch_test.dart b/tests/language/patterns/exhaustiveness/object_pattern_switch_test.dart index 1963647c641..21845fcdbe8 100644 --- a/tests/language/patterns/exhaustiveness/object_pattern_switch_test.dart +++ b/tests/language/patterns/exhaustiveness/object_pattern_switch_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records,sealed-class - enum Enum {a, b} sealed class A { diff --git a/tests/language/patterns/exhaustiveness/record_literal_named_switch_test.dart b/tests/language/patterns/exhaustiveness/record_literal_named_switch_test.dart index f3d731e5b70..f94a29b466d 100644 --- a/tests/language/patterns/exhaustiveness/record_literal_named_switch_test.dart +++ b/tests/language/patterns/exhaustiveness/record_literal_named_switch_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - enum Enum {a, b} void exhaustiveSwitch(({Enum a, bool b}) r) { diff --git a/tests/language/patterns/exhaustiveness/record_literal_switch_test.dart b/tests/language/patterns/exhaustiveness/record_literal_switch_test.dart index 3db76f220fc..510f240dbdd 100644 --- a/tests/language/patterns/exhaustiveness/record_literal_switch_test.dart +++ b/tests/language/patterns/exhaustiveness/record_literal_switch_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - enum Enum {a, b} void exhaustiveSwitch((Enum, bool) r) { diff --git a/tests/language/patterns/exhaustiveness/record_switch_test.dart b/tests/language/patterns/exhaustiveness/record_switch_test.dart index d40c9551758..f05cdf369b8 100644 --- a/tests/language/patterns/exhaustiveness/record_switch_test.dart +++ b/tests/language/patterns/exhaustiveness/record_switch_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - enum Enum {a, b} const r0 = (Enum.a, false); const r1 = (Enum.b, false); diff --git a/tests/language/patterns/exhaustiveness/sealed_class_switch_test.dart b/tests/language/patterns/exhaustiveness/sealed_class_switch_test.dart index 7e345c22b51..94b8d3f9523 100644 --- a/tests/language/patterns/exhaustiveness/sealed_class_switch_test.dart +++ b/tests/language/patterns/exhaustiveness/sealed_class_switch_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,sealed-class,records - sealed class A {} class B extends A {} class C extends A {} diff --git a/tests/language/patterns/exhaustiveness/shared_sealed_supertypes_test.dart b/tests/language/patterns/exhaustiveness/shared_sealed_supertypes_test.dart index 4eaca99a5d4..a898460ed50 100644 --- a/tests/language/patterns/exhaustiveness/shared_sealed_supertypes_test.dart +++ b/tests/language/patterns/exhaustiveness/shared_sealed_supertypes_test.dart @@ -5,8 +5,6 @@ // Test that exhaustiveness handles sealed type hierarchies that aren't strict // trees. -// SharedOptions=--enable-experiment=patterns,sealed-class - // Create a class hierarchy like: // // (A) diff --git a/tests/language/patterns/exhaustiveness/type_test_type_parameter_test.dart b/tests/language/patterns/exhaustiveness/type_test_type_parameter_test.dart index 8c7007d2919..cd93da579b7 100644 --- a/tests/language/patterns/exhaustiveness/type_test_type_parameter_test.dart +++ b/tests/language/patterns/exhaustiveness/type_test_type_parameter_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // Test that using a type parameter as a type test in a pattern doesn't // incorrectly use the bound for exhaustiveness. // diff --git a/tests/language/patterns/exhaustiveness/variable_pattern_switch_test.dart b/tests/language/patterns/exhaustiveness/variable_pattern_switch_test.dart index a9480582063..f48ed7d86aa 100644 --- a/tests/language/patterns/exhaustiveness/variable_pattern_switch_test.dart +++ b/tests/language/patterns/exhaustiveness/variable_pattern_switch_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - enum Enum {a, b} void exhaustiveSwitch1((Enum, bool) r) { diff --git a/tests/language/patterns/guard_capture_test.dart b/tests/language/patterns/guard_capture_test.dart index a0d9248da4a..4e28237aa5e 100644 --- a/tests/language/patterns/guard_capture_test.dart +++ b/tests/language/patterns/guard_capture_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - import "package:expect/expect.dart"; main() { diff --git a/tests/language/patterns/guard_error_test.dart b/tests/language/patterns/guard_error_test.dart index 1454f0624f4..ed78c1e4154 100644 --- a/tests/language/patterns/guard_error_test.dart +++ b/tests/language/patterns/guard_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - main() { // Error to assign to pattern variables in guard. switch (false) { diff --git a/tests/language/patterns/guard_scope_test.dart b/tests/language/patterns/guard_scope_test.dart index 6f55888d31a..64666797837 100644 --- a/tests/language/patterns/guard_scope_test.dart +++ b/tests/language/patterns/guard_scope_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - /// Variables declared by a pattern are in scope in the guard. import "package:expect/expect.dart"; diff --git a/tests/language/patterns/identifier_when_not_test.dart b/tests/language/patterns/identifier_when_not_test.dart index 224dded142d..d57850144b7 100644 --- a/tests/language/patterns/identifier_when_not_test.dart +++ b/tests/language/patterns/identifier_when_not_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - /// Tests that guarded patterns of the form `identifier when !condition` can be /// properly parsed. See https://github.com/dart-lang/sdk/issues/52199. diff --git a/tests/language/patterns/implicit_instantiation_error_test.dart b/tests/language/patterns/implicit_instantiation_error_test.dart index f978fe45942..042af4855d4 100644 --- a/tests/language/patterns/implicit_instantiation_error_test.dart +++ b/tests/language/patterns/implicit_instantiation_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - /// Test that implicit generic function instantiations are inserted based on /// the pattern's context type, but not when destructuring. diff --git a/tests/language/patterns/implicit_instantiation_test.dart b/tests/language/patterns/implicit_instantiation_test.dart index 87c578337c4..52cd2445142 100644 --- a/tests/language/patterns/implicit_instantiation_test.dart +++ b/tests/language/patterns/implicit_instantiation_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - /// Test that implicit generic function instantiations are inserted based on /// the pattern's context type, but not when destructuring. diff --git a/tests/language/patterns/int_to_double_error_test.dart b/tests/language/patterns/int_to_double_error_test.dart index 9a90d2dcb8a..4b902a3a507 100644 --- a/tests/language/patterns/int_to_double_error_test.dart +++ b/tests/language/patterns/int_to_double_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - /// Test where a pattern does and does not create a context type that leads to /// int-to-double conversion. diff --git a/tests/language/patterns/int_to_double_test.dart b/tests/language/patterns/int_to_double_test.dart index c8382faf5cf..06dc139375e 100644 --- a/tests/language/patterns/int_to_double_test.dart +++ b/tests/language/patterns/int_to_double_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - /// Test where a pattern does and does not create a context type that leads to /// int-to-double conversion. diff --git a/tests/language/patterns/invalid_const_pattern_binary_test.dart b/tests/language/patterns/invalid_const_pattern_binary_test.dart index 4e856822f8d..d00e0742576 100644 --- a/tests/language/patterns/invalid_const_pattern_binary_test.dart +++ b/tests/language/patterns/invalid_const_pattern_binary_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=records,patterns - import 'invalid_const_pattern_binary_test.dart' as prefix; const value = 1; diff --git a/tests/language/patterns/invalid_const_pattern_test.dart b/tests/language/patterns/invalid_const_pattern_test.dart index a2cd9c13dfc..60526fd725a 100644 --- a/tests/language/patterns/invalid_const_pattern_test.dart +++ b/tests/language/patterns/invalid_const_pattern_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=records,patterns - import 'invalid_const_pattern_test.dart' as prefix; const int value = 42; diff --git a/tests/language/patterns/invalid_inside_unary_pattern_error_test.dart b/tests/language/patterns/invalid_inside_unary_pattern_error_test.dart index eae522e74f2..93854386146 100644 --- a/tests/language/patterns/invalid_inside_unary_pattern_error_test.dart +++ b/tests/language/patterns/invalid_inside_unary_pattern_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // Test that errors are generated if a unary pattern or a relational pattern // appears inside a unary pattern. This is prohibited by the patterns grammar, // but accepted by the parser's precedence-based parsing logic (because it's not diff --git a/tests/language/patterns/invalid_inside_unary_pattern_parentheses_test.dart b/tests/language/patterns/invalid_inside_unary_pattern_parentheses_test.dart index 07edb386046..e70820c6615 100644 --- a/tests/language/patterns/invalid_inside_unary_pattern_parentheses_test.dart +++ b/tests/language/patterns/invalid_inside_unary_pattern_parentheses_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // Test that a unary pattern or a relational pattern may appear inside a unary // pattern as long as there are parentheses. diff --git a/tests/language/patterns/issue_52439.dart b/tests/language/patterns/issue_52439.dart index 53858dea6ff..46068b22cc2 100644 --- a/tests/language/patterns/issue_52439.dart +++ b/tests/language/patterns/issue_52439.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=records,patterns - import "package:expect/expect.dart"; void main() { diff --git a/tests/language/patterns/keyword_in_pattern_variable_declaration_error_test.dart b/tests/language/patterns/keyword_in_pattern_variable_declaration_error_test.dart index 7bc12c1e540..f1d687c29b1 100644 --- a/tests/language/patterns/keyword_in_pattern_variable_declaration_error_test.dart +++ b/tests/language/patterns/keyword_in_pattern_variable_declaration_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // Test that the proper errors are generated if a declared variable appears // inside a pattern assignment. diff --git a/tests/language/patterns/non_interface_object_pattern_test.dart b/tests/language/patterns/non_interface_object_pattern_test.dart index b1496e4af72..b5a8999b5bc 100644 --- a/tests/language/patterns/non_interface_object_pattern_test.dart +++ b/tests/language/patterns/non_interface_object_pattern_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - import 'dart:async'; import 'package:expect/expect.dart'; diff --git a/tests/language/patterns/object_pattern_inference_test.dart b/tests/language/patterns/object_pattern_inference_test.dart index ea1ed13e722..4190fcd5b05 100644 --- a/tests/language/patterns/object_pattern_inference_test.dart +++ b/tests/language/patterns/object_pattern_inference_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - // Test that the type arguments of object patterns are properly inferred. import "package:expect/expect.dart"; diff --git a/tests/language/patterns/pattern_variable_constant_scope_test.dart b/tests/language/patterns/pattern_variable_constant_scope_test.dart index c14af6f1fcd..38017ba0c60 100644 --- a/tests/language/patterns/pattern_variable_constant_scope_test.dart +++ b/tests/language/patterns/pattern_variable_constant_scope_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - /// A variable declared by a pattern is in scope in the pattern but can't be /// used in constant expression inside the pattern. diff --git a/tests/language/patterns/primitive_switch_test.dart b/tests/language/patterns/primitive_switch_test.dart index 3507bd1caac..f39db456053 100644 --- a/tests/language/patterns/primitive_switch_test.dart +++ b/tests/language/patterns/primitive_switch_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - // Verify that switches using only values with primitive equality (excluding // the exceptions Symbol and Type) are lowered correctly. These are special // cased by the CFE. diff --git a/tests/language/patterns/record_type_object_pattern_test.dart b/tests/language/patterns/record_type_object_pattern_test.dart index dd517292d90..7aa08c59037 100644 --- a/tests/language/patterns/record_type_object_pattern_test.dart +++ b/tests/language/patterns/record_type_object_pattern_test.dart @@ -2,7 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=records,patterns // VMOptions=--lazy-dispatchers // VMOptions=--no-lazy-dispatchers diff --git a/tests/language/patterns/relational_pattern_expression_precedence_error_test.dart b/tests/language/patterns/relational_pattern_expression_precedence_error_test.dart index 148c61a8eb6..c0b497beb16 100644 --- a/tests/language/patterns/relational_pattern_expression_precedence_error_test.dart +++ b/tests/language/patterns/relational_pattern_expression_precedence_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // Test certain expression types that are not allowed inside a relational // pattern. diff --git a/tests/language/patterns/relational_pattern_expression_precedence_test.dart b/tests/language/patterns/relational_pattern_expression_precedence_test.dart index cbd394612f8..3a26a6b7800 100644 --- a/tests/language/patterns/relational_pattern_expression_precedence_test.dart +++ b/tests/language/patterns/relational_pattern_expression_precedence_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // Test that all the expression types permitted by the grammar are allowed // inside a relational pattern. diff --git a/tests/language/patterns/shared_case_variable_error_test.dart b/tests/language/patterns/shared_case_variable_error_test.dart index 44b1f782c07..578454ff8c9 100644 --- a/tests/language/patterns/shared_case_variable_error_test.dart +++ b/tests/language/patterns/shared_case_variable_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - import "package:expect/expect.dart"; main() { diff --git a/tests/language/patterns/shared_case_variable_test.dart b/tests/language/patterns/shared_case_variable_test.dart index 74a82e26d7d..53f7910fb5a 100644 --- a/tests/language/patterns/shared_case_variable_test.dart +++ b/tests/language/patterns/shared_case_variable_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - import "package:expect/expect.dart"; main() { diff --git a/tests/language/patterns/switch_case_scope_error_test.dart b/tests/language/patterns/switch_case_scope_error_test.dart index 884282b1d9e..dd845810c9b 100644 --- a/tests/language/patterns/switch_case_scope_error_test.dart +++ b/tests/language/patterns/switch_case_scope_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - main() { var local = 'local'; diff --git a/tests/language/patterns/switch_case_scope_test.dart b/tests/language/patterns/switch_case_scope_test.dart index ae40e96586e..c6cf014ca72 100644 --- a/tests/language/patterns/switch_case_scope_test.dart +++ b/tests/language/patterns/switch_case_scope_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - import "package:expect/expect.dart"; main() { diff --git a/tests/language/patterns/switch_expression_using_statement_syntax_error_test.dart b/tests/language/patterns/switch_expression_using_statement_syntax_error_test.dart index b309356a2a4..5700ee7975b 100644 --- a/tests/language/patterns/switch_expression_using_statement_syntax_error_test.dart +++ b/tests/language/patterns/switch_expression_using_statement_syntax_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // Test that attempting to use `case`, `default`, `:`, and `;` tokens in a // switch expression doesn't confuse the parser. diff --git a/tests/language/patterns/switch_trivial_exhaustiveness_error_test.dart b/tests/language/patterns/switch_trivial_exhaustiveness_error_test.dart index 819daabe312..07b95fa1964 100644 --- a/tests/language/patterns/switch_trivial_exhaustiveness_error_test.dart +++ b/tests/language/patterns/switch_trivial_exhaustiveness_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - // Flow analysis doesn't do full exhaustiveness analysis of switch statements, // but it detects if a switch statement is "trivially exhaustive". A switch // statement is trivially exhaustive if it has at least one case that fully diff --git a/tests/language/patterns/type_question_before_when_test.dart b/tests/language/patterns/type_question_before_when_test.dart index 1c29c7cf19f..b89dc27a345 100644 --- a/tests/language/patterns/type_question_before_when_test.dart +++ b/tests/language/patterns/type_question_before_when_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // Test that a type followed by `? when` is correctly parsed. import 'package:expect/expect.dart'; diff --git a/tests/language/patterns/var_keyword_in_typed_variable_pattern_error_test.dart b/tests/language/patterns/var_keyword_in_typed_variable_pattern_error_test.dart index 02f3a2ddd71..44faa83627d 100644 --- a/tests/language/patterns/var_keyword_in_typed_variable_pattern_error_test.dart +++ b/tests/language/patterns/var_keyword_in_typed_variable_pattern_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // Test that the proper errors are generated if both `var` and a type are used // in a declared variable pattern. diff --git a/tests/language/patterns/var_keyword_in_typed_wildcard_pattern_error_test.dart b/tests/language/patterns/var_keyword_in_typed_wildcard_pattern_error_test.dart index 4c35be79507..299dd3ebabf 100644 --- a/tests/language/patterns/var_keyword_in_typed_wildcard_pattern_error_test.dart +++ b/tests/language/patterns/var_keyword_in_typed_wildcard_pattern_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // Test that the proper errors are generated if both `var` and a type are used // in a wildcard pattern. diff --git a/tests/language/patterns/version_2_29_changes_error_test.dart b/tests/language/patterns/version_2_29_changes_error_test.dart index 88010c2aa93..65f4ba3c1bb 100644 --- a/tests/language/patterns/version_2_29_changes_error_test.dart +++ b/tests/language/patterns/version_2_29_changes_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // This test captures the changes introduced in 2.29 of the patterns proposal. import "package:expect/expect.dart"; diff --git a/tests/language/patterns/version_2_29_changes_test.dart b/tests/language/patterns/version_2_29_changes_test.dart index 8c5d59a5256..a81d3e8ab43 100644 --- a/tests/language/patterns/version_2_29_changes_test.dart +++ b/tests/language/patterns/version_2_29_changes_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // This test captures the changes introduced in 2.29 of the patterns proposal. import 'dart:collection'; diff --git a/tests/language/patterns/version_2_32_changes_error_test.dart b/tests/language/patterns/version_2_32_changes_error_test.dart index 4c8625526bf..5544ac65212 100644 --- a/tests/language/patterns/version_2_32_changes_error_test.dart +++ b/tests/language/patterns/version_2_32_changes_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // This test captures the changes introduced in 2.32 of the patterns proposal. main() { diff --git a/tests/language/patterns/wildcard_in_matching_context_test.dart b/tests/language/patterns/wildcard_in_matching_context_test.dart index 3179c95de07..63895ff9f57 100644 --- a/tests/language/patterns/wildcard_in_matching_context_test.dart +++ b/tests/language/patterns/wildcard_in_matching_context_test.dart @@ -2,10 +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. -// SharedOptions=--enable-experiment=patterns - // Test that no errors are generated if a wildcard pattern appears inside a -// matching context.. +// matching context. import "package:expect/expect.dart"; diff --git a/tests/language/patterns/wildcard_in_pattern_assignment_error_test.dart b/tests/language/patterns/wildcard_in_pattern_assignment_error_test.dart index ef43091476e..a152be4f534 100644 --- a/tests/language/patterns/wildcard_in_pattern_assignment_error_test.dart +++ b/tests/language/patterns/wildcard_in_pattern_assignment_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // Test that errors are generated if an improperly formed wildcard pattern // appears inside a pattern assignment. diff --git a/tests/language/patterns/wildcard_in_pattern_assignment_test.dart b/tests/language/patterns/wildcard_in_pattern_assignment_test.dart index 1845c09afb8..cd9998be86e 100644 --- a/tests/language/patterns/wildcard_in_pattern_assignment_test.dart +++ b/tests/language/patterns/wildcard_in_pattern_assignment_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // Test that no errors are generated if a wildcard pattern appears inside a // pattern assignment. diff --git a/tests/language/patterns/wildcard_in_pattern_variable_declaration_error_test.dart b/tests/language/patterns/wildcard_in_pattern_variable_declaration_error_test.dart index b3522046de8..3f746b945f4 100644 --- a/tests/language/patterns/wildcard_in_pattern_variable_declaration_error_test.dart +++ b/tests/language/patterns/wildcard_in_pattern_variable_declaration_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // Test that errors are generated if an improperly formed wildcard pattern // appears inside a pattern variable declaration statement. diff --git a/tests/language/patterns/wildcard_in_pattern_variable_declaration_test.dart b/tests/language/patterns/wildcard_in_pattern_variable_declaration_test.dart index 99ccd93a66c..3df8ebffe52 100644 --- a/tests/language/patterns/wildcard_in_pattern_variable_declaration_test.dart +++ b/tests/language/patterns/wildcard_in_pattern_variable_declaration_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns - // Test that no errors are generated if a wildcard pattern appears inside a // pattern variable declaration statement. diff --git a/tests/language/record_literal_problems_test.dart b/tests/language/record_literal_problems_test.dart index 117a61cd901..94c48488bd4 100644 --- a/tests/language/record_literal_problems_test.dart +++ b/tests/language/record_literal_problems_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=records - main() { var r1 = const (42); // ^ diff --git a/tests/language/record_literal_test.dart b/tests/language/record_literal_test.dart index e761bb1f4f0..826324069ad 100644 --- a/tests/language/record_literal_test.dart +++ b/tests/language/record_literal_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=records - main() { var record1 = (1, 2, a: 3, b: 4); print(record1); diff --git a/tests/language/record_type_empty_problems_test.dart b/tests/language/record_type_empty_problems_test.dart index e70e9cb2922..d7cfd450d4c 100644 --- a/tests/language/record_type_empty_problems_test.dart +++ b/tests/language/record_type_empty_problems_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=records - main() { (int, int, {/*missing*/}) r1 = (1, 2); // ^ diff --git a/tests/language/record_type_problems_test.dart b/tests/language/record_type_problems_test.dart index e70e9cb2922..d7cfd450d4c 100644 --- a/tests/language/record_type_problems_test.dart +++ b/tests/language/record_type_problems_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=records - main() { (int, int, {/*missing*/}) r1 = (1, 2); // ^ diff --git a/tests/language/record_type_test.dart b/tests/language/record_type_test.dart index e8cbdc57e43..5b5a26e9069 100644 --- a/tests/language/record_type_test.dart +++ b/tests/language/record_type_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=records - main() { (int, int) record1 = (1, 2); print(record1); diff --git a/tests/language/records/simple/constants_and_field_access_test.dart b/tests/language/records/simple/constants_and_field_access_test.dart index ffbf5befdfc..746b96e233e 100644 --- a/tests/language/records/simple/constants_and_field_access_test.dart +++ b/tests/language/records/simple/constants_and_field_access_test.dart @@ -2,7 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=records // VMOptions= // VMOptions=--test_il_serialization diff --git a/tests/language/records/simple/dynamic_field_access_2_test.dart b/tests/language/records/simple/dynamic_field_access_2_test.dart index f3e29068850..bcc98c2986e 100644 --- a/tests/language/records/simple/dynamic_field_access_2_test.dart +++ b/tests/language/records/simple/dynamic_field_access_2_test.dart @@ -2,7 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=records // VMOptions=--lazy-dispatchers // VMOptions=--no-lazy-dispatchers diff --git a/tests/language/records/simple/dynamic_field_access_test.dart b/tests/language/records/simple/dynamic_field_access_test.dart index b3406759a7c..8097750d06a 100644 --- a/tests/language/records/simple/dynamic_field_access_test.dart +++ b/tests/language/records/simple/dynamic_field_access_test.dart @@ -2,7 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=records // VMOptions=--lazy-dispatchers // VMOptions=--no-lazy-dispatchers diff --git a/tests/language/records/simple/equals_and_hashcode_test.dart b/tests/language/records/simple/equals_and_hashcode_test.dart index 836763b31f0..e07a8b3d446 100644 --- a/tests/language/records/simple/equals_and_hashcode_test.dart +++ b/tests/language/records/simple/equals_and_hashcode_test.dart @@ -2,8 +2,6 @@ // for details. All rights reserved. Use of this source code as governed by a // BSD-style license that can be found in the LICENSE file. -// SharedOptions=--enable-experiment=records - import "package:expect/expect.dart"; class NotEqual { diff --git a/tests/language/records/simple/literals_and_field_access_test.dart b/tests/language/records/simple/literals_and_field_access_test.dart index e88fb185031..b5cd3f42c86 100644 --- a/tests/language/records/simple/literals_and_field_access_test.dart +++ b/tests/language/records/simple/literals_and_field_access_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=records - import "package:expect/expect.dart"; void checkRecordP2(Object? e1, Object? e2, (Object?, Object?) r) { diff --git a/tests/language/records/simple/overridden_runtimetype_test.dart b/tests/language/records/simple/overridden_runtimetype_test.dart index 108f636d53a..54ade1078ee 100644 --- a/tests/language/records/simple/overridden_runtimetype_test.dart +++ b/tests/language/records/simple/overridden_runtimetype_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=records - import "package:expect/expect.dart"; class A { diff --git a/tests/language/records/simple/positional_field_access_start_from_1_test.dart b/tests/language/records/simple/positional_field_access_start_from_1_test.dart index 93011249e84..1c569e542cf 100644 --- a/tests/language/records/simple/positional_field_access_start_from_1_test.dart +++ b/tests/language/records/simple/positional_field_access_start_from_1_test.dart @@ -2,7 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=records // VMOptions=--lazy-dispatchers // VMOptions=--no-lazy-dispatchers diff --git a/tests/language/records/simple/runtime_type_test.dart b/tests/language/records/simple/runtime_type_test.dart index 4af02359303..fb83a2c813e 100644 --- a/tests/language/records/simple/runtime_type_test.dart +++ b/tests/language/records/simple/runtime_type_test.dart @@ -2,8 +2,6 @@ // for details. All rights reserved. Use of this source code as governed by a // BSD-style license that can be found in the LICENSE file. -// SharedOptions=--enable-experiment=records - import "package:expect/expect.dart"; @pragma('vm:never-inline') diff --git a/tests/language/records/simple/to_string_test.dart b/tests/language/records/simple/to_string_test.dart index 4664cebed81..19c6c5c7e36 100644 --- a/tests/language/records/simple/to_string_test.dart +++ b/tests/language/records/simple/to_string_test.dart @@ -2,8 +2,6 @@ // for details. All rights reserved. Use of this source code as governed by a // BSD-style license that can be found in the LICENSE file. -// SharedOptions=--enable-experiment=records - import "package:expect/expect.dart"; class A { diff --git a/tests/language/records/simple/type_checks2_test.dart b/tests/language/records/simple/type_checks2_test.dart index cb0a1a0c418..23b11cbfb69 100644 --- a/tests/language/records/simple/type_checks2_test.dart +++ b/tests/language/records/simple/type_checks2_test.dart @@ -2,7 +2,6 @@ // for details. All rights reserved. Use of this source code as governed by a // BSD-style license that can be found in the LICENSE file. -// SharedOptions=--enable-experiment=records // VMOptions=--deterministic --optimization_counter_threshold=150 import "package:expect/expect.dart"; diff --git a/tests/language/records/simple/type_checks3_test.dart b/tests/language/records/simple/type_checks3_test.dart index 08c8b6b111f..878a01bc5cd 100644 --- a/tests/language/records/simple/type_checks3_test.dart +++ b/tests/language/records/simple/type_checks3_test.dart @@ -2,7 +2,6 @@ // for details. All rights reserved. Use of this source code as governed by a // BSD-style license that can be found in the LICENSE file. -// SharedOptions=--enable-experiment=records // VMOptions=--deterministic --optimization_counter_threshold=150 import "package:expect/expect.dart"; diff --git a/tests/language/records/simple/type_checks_test.dart b/tests/language/records/simple/type_checks_test.dart index 0172e0034e7..e622e478ab8 100644 --- a/tests/language/records/simple/type_checks_test.dart +++ b/tests/language/records/simple/type_checks_test.dart @@ -2,7 +2,6 @@ // for details. All rights reserved. Use of this source code as governed by a // BSD-style license that can be found in the LICENSE file. -// SharedOptions=--enable-experiment=records // VMOptions=--deterministic --optimization_counter_threshold=150 import "package:expect/expect.dart"; diff --git a/tests/language/regress/regress51883_test.dart b/tests/language/regress/regress51883_test.dart index f8d2909e25c..28c182c70df 100644 --- a/tests/language/regress/regress51883_test.dart +++ b/tests/language/regress/regress51883_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=records - // Verifies that constant-like records are correctly simplified into a constant // record by the backends who perform such optimizations. // diff --git a/tests/language/sealed_class/sealed_class_as_mixin_error_test.dart b/tests/language/sealed_class/sealed_class_as_mixin_error_test.dart index 2a70f9abf43..7fea3b308a0 100644 --- a/tests/language/sealed_class/sealed_class_as_mixin_error_test.dart +++ b/tests/language/sealed_class/sealed_class_as_mixin_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class,class-modifiers - // Error when attempting to mix in a sealed class outside of library. import 'sealed_class_as_mixin_lib.dart'; diff --git a/tests/language/sealed_class/sealed_class_as_mixin_lib.dart b/tests/language/sealed_class/sealed_class_as_mixin_lib.dart index 40058d3369f..6318d1b0a9b 100644 --- a/tests/language/sealed_class/sealed_class_as_mixin_lib.dart +++ b/tests/language/sealed_class/sealed_class_as_mixin_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class,class-modifiers - // Other-library declarations used by sealed_class_as_mixin_error_test.dart. sealed class SealedClass { diff --git a/tests/language/sealed_class/sealed_class_construct_error_test.dart b/tests/language/sealed_class/sealed_class_construct_error_test.dart index 1aeaf012b4b..c492d5dd5ec 100644 --- a/tests/language/sealed_class/sealed_class_construct_error_test.dart +++ b/tests/language/sealed_class/sealed_class_construct_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Error when we try to construct a sealed class or mixin because they should // both be implicitly abstract. diff --git a/tests/language/sealed_class/sealed_class_extend_error_test.dart b/tests/language/sealed_class/sealed_class_extend_error_test.dart index 36a72761f41..13d4148d481 100644 --- a/tests/language/sealed_class/sealed_class_extend_error_test.dart +++ b/tests/language/sealed_class/sealed_class_extend_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Error when attempting to extend a sealed class outside of its library. import 'sealed_class_extend_lib.dart'; diff --git a/tests/language/sealed_class/sealed_class_extend_lib.dart b/tests/language/sealed_class/sealed_class_extend_lib.dart index 09c7021462a..a3f71d35d0b 100644 --- a/tests/language/sealed_class/sealed_class_extend_lib.dart +++ b/tests/language/sealed_class/sealed_class_extend_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Other-library declarations used by sealed_class_extend_test.dart and // sealed_class_extend_error_test.dart. diff --git a/tests/language/sealed_class/sealed_class_extend_test.dart b/tests/language/sealed_class/sealed_class_extend_test.dart index e26ae23c2e1..698aa2543e1 100644 --- a/tests/language/sealed_class/sealed_class_extend_test.dart +++ b/tests/language/sealed_class/sealed_class_extend_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Allow sealed classes to be extended by multiple classes in the same library. // Additionally, allow their subclasses/subtypes to be used freely. diff --git a/tests/language/sealed_class/sealed_class_implement_error_test.dart b/tests/language/sealed_class/sealed_class_implement_error_test.dart index 3dd6dff648f..5749bc6c93f 100644 --- a/tests/language/sealed_class/sealed_class_implement_error_test.dart +++ b/tests/language/sealed_class/sealed_class_implement_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Error when attempting to implement a sealed class outside of its library. import "sealed_class_implement_lib.dart"; diff --git a/tests/language/sealed_class/sealed_class_implement_lib.dart b/tests/language/sealed_class/sealed_class_implement_lib.dart index e3f1cf36589..ce53d1028eb 100644 --- a/tests/language/sealed_class/sealed_class_implement_lib.dart +++ b/tests/language/sealed_class/sealed_class_implement_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Other-library declarations used by sealed_class_implement_test.dart and // sealed_class_implement_error_test.dart. diff --git a/tests/language/sealed_class/sealed_class_implement_test.dart b/tests/language/sealed_class/sealed_class_implement_test.dart index 5f6e7191b0d..0c9d5714a77 100644 --- a/tests/language/sealed_class/sealed_class_implement_test.dart +++ b/tests/language/sealed_class/sealed_class_implement_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Allow sealed classes to be implemented by multiple classes in the same // library. // Additionally, allow their subclasses/subtypes to be used freely. diff --git a/tests/language/sealed_class/sealed_class_mixin_on_error_test.dart b/tests/language/sealed_class/sealed_class_mixin_on_error_test.dart index 1914f8256de..40f08cc1e5e 100644 --- a/tests/language/sealed_class/sealed_class_mixin_on_error_test.dart +++ b/tests/language/sealed_class/sealed_class_mixin_on_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - import 'sealed_class_mixin_on_lib.dart'; // It is an error to declare a mixin with an `on` type which is a sealed class diff --git a/tests/language/sealed_class/sealed_class_mixin_on_lib.dart b/tests/language/sealed_class/sealed_class_mixin_on_lib.dart index 4c03c8c97e9..57a8486f2bc 100644 --- a/tests/language/sealed_class/sealed_class_mixin_on_lib.dart +++ b/tests/language/sealed_class/sealed_class_mixin_on_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Other-library declarations used by sealed_class_mixin_on_error_test.dart. sealed class SealedClass {} diff --git a/tests/language/sealed_class/sealed_class_part_lib.dart b/tests/language/sealed_class/sealed_class_part_lib.dart index 240ad5a542e..cda4705674c 100644 --- a/tests/language/sealed_class/sealed_class_part_lib.dart +++ b/tests/language/sealed_class/sealed_class_part_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Other-library declarations used by sealed_class_part_test.dart. part of 'sealed_class_part_test.dart'; diff --git a/tests/language/sealed_class/sealed_class_part_test.dart b/tests/language/sealed_class/sealed_class_part_test.dart index ce62ada5756..7bc8db2f3b8 100644 --- a/tests/language/sealed_class/sealed_class_part_test.dart +++ b/tests/language/sealed_class/sealed_class_part_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Allow extending and implementing sealed classes in a part file of // the same library diff --git a/tests/language/sealed_class/sealed_class_sealed_subtype_test.dart b/tests/language/sealed_class/sealed_class_sealed_subtype_test.dart index 79487eae754..de6107793f3 100644 --- a/tests/language/sealed_class/sealed_class_sealed_subtype_test.dart +++ b/tests/language/sealed_class/sealed_class_sealed_subtype_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Allow subtypes of a sealed class or mixin to be sealed as well. import "package:expect/expect.dart"; diff --git a/tests/language/sealed_class/sealed_class_syntax_disabled_error_test.dart b/tests/language/sealed_class/sealed_class_syntax_disabled_error_test.dart index 3083e7fadd4..1e52a389d32 100644 --- a/tests/language/sealed_class/sealed_class_syntax_disabled_error_test.dart +++ b/tests/language/sealed_class/sealed_class_syntax_disabled_error_test.dart @@ -2,7 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class // @dart = 2.19 // Make sure errors are emitted when trying to use sealed classes without diff --git a/tests/language/sealed_class/sealed_class_syntax_error_test.dart b/tests/language/sealed_class/sealed_class_syntax_error_test.dart index 34a69c66425..1dd705e8681 100644 --- a/tests/language/sealed_class/sealed_class_syntax_error_test.dart +++ b/tests/language/sealed_class/sealed_class_syntax_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Syntax errors such as using `sealed` keyword in a place other than a class or // mixin. diff --git a/tests/language/sealed_class/sealed_class_syntax_test.dart b/tests/language/sealed_class/sealed_class_syntax_test.dart index ceaacb4e054..c42e193dd3d 100644 --- a/tests/language/sealed_class/sealed_class_syntax_test.dart +++ b/tests/language/sealed_class/sealed_class_syntax_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Tests we can still use `sealed` as an identifier. import "package:expect/expect.dart"; diff --git a/tests/language/sealed_class/sealed_class_typedef_error_test.dart b/tests/language/sealed_class/sealed_class_typedef_error_test.dart index 1598554e03c..40953e031e2 100644 --- a/tests/language/sealed_class/sealed_class_typedef_error_test.dart +++ b/tests/language/sealed_class/sealed_class_typedef_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Error when attempting to extend or implement typedef sealed class // outside of its library. diff --git a/tests/language/sealed_class/sealed_class_typedef_lib.dart b/tests/language/sealed_class/sealed_class_typedef_lib.dart index 332d97e7982..7b78fc6d871 100644 --- a/tests/language/sealed_class/sealed_class_typedef_lib.dart +++ b/tests/language/sealed_class/sealed_class_typedef_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Other-library declarations used by sealed_class_typedef_error_test.dart. sealed class SealedClass { diff --git a/tests/language/sealed_class/sealed_class_typedef_outside_of_library_lib.dart b/tests/language/sealed_class/sealed_class_typedef_outside_of_library_lib.dart index 4170053d932..b4c6abc6e94 100644 --- a/tests/language/sealed_class/sealed_class_typedef_outside_of_library_lib.dart +++ b/tests/language/sealed_class/sealed_class_typedef_outside_of_library_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Other-library declarations used by // sealed_class_typedef_outside_of_library_test.dart. diff --git a/tests/language/sealed_class/sealed_class_typedef_outside_of_library_lib2.dart b/tests/language/sealed_class/sealed_class_typedef_outside_of_library_lib2.dart index d85cc1e8583..14a532e9187 100644 --- a/tests/language/sealed_class/sealed_class_typedef_outside_of_library_lib2.dart +++ b/tests/language/sealed_class/sealed_class_typedef_outside_of_library_lib2.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Other-library declarations used by // sealed_class_typedef_outside_of_library_test.dart. diff --git a/tests/language/sealed_class/sealed_class_typedef_outside_of_library_test.dart b/tests/language/sealed_class/sealed_class_typedef_outside_of_library_test.dart index 5873d130a01..2e534d4e5b8 100644 --- a/tests/language/sealed_class/sealed_class_typedef_outside_of_library_test.dart +++ b/tests/language/sealed_class/sealed_class_typedef_outside_of_library_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Allow typedef in different library, used by class in library. import "package:expect/expect.dart"; diff --git a/tests/language/sealed_class/sealed_class_typedef_test.dart b/tests/language/sealed_class/sealed_class_typedef_test.dart index deaf88575b3..af5000772d9 100644 --- a/tests/language/sealed_class/sealed_class_typedef_test.dart +++ b/tests/language/sealed_class/sealed_class_typedef_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Allow typedef sealed classes to be extended, implemented, mixed in by // multiple classes in the same library. diff --git a/tests/language/sealed_class/sealed_class_typedef_used_outside_error_test.dart b/tests/language/sealed_class/sealed_class_typedef_used_outside_error_test.dart index cc062214d3c..bdfeeeab692 100644 --- a/tests/language/sealed_class/sealed_class_typedef_used_outside_error_test.dart +++ b/tests/language/sealed_class/sealed_class_typedef_used_outside_error_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Error when trying to extend or implement a typedef sealed class outside of // the sealed class' library when the typedef is also outside the sealed class // library. diff --git a/tests/language/sealed_class/sealed_class_typedef_used_outside_lib.dart b/tests/language/sealed_class/sealed_class_typedef_used_outside_lib.dart index f01a6d9af2c..b8faf96149f 100644 --- a/tests/language/sealed_class/sealed_class_typedef_used_outside_lib.dart +++ b/tests/language/sealed_class/sealed_class_typedef_used_outside_lib.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=sealed-class - // Other-library declarations used by // sealed_class_typedef_used_outside_test.dart. diff --git a/tests/language/switch/equality_side_effect_test.dart b/tests/language/switch/equality_side_effect_test.dart index 79d7a31e0ee..85c81c1a613 100644 --- a/tests/language/switch/equality_side_effect_test.dart +++ b/tests/language/switch/equality_side_effect_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - // Switch cases may call user-defined `==` methods, which can have arbitrary // side effects. Test that the cases are tried in order. diff --git a/tests/language/switch/non_primitive_equality_test.dart b/tests/language/switch/non_primitive_equality_test.dart index 6efdc08bf4f..4cc42db0628 100644 --- a/tests/language/switch/non_primitive_equality_test.dart +++ b/tests/language/switch/non_primitive_equality_test.dart @@ -2,9 +2,7 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - -// With Dart 3.0, switch cases are pattersn and constants in cases are no +// With Dart 3.0, switch cases are patterns and constants in cases are no // longer required to have primitive equality. import "package:expect/expect.dart"; diff --git a/tests/language/switch/switch1_test.dart b/tests/language/switch/switch1_test.dart index a809b1d65f6..19cc991e32b 100644 --- a/tests/language/switch/switch1_test.dart +++ b/tests/language/switch/switch1_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - /// Check that default clause must be last case. main() { diff --git a/tests/language/switch/switch4_test.dart b/tests/language/switch/switch4_test.dart index a03eced414b..ccd63126e3f 100644 --- a/tests/language/switch/switch4_test.dart +++ b/tests/language/switch/switch4_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - /// Discover unresolved case labels. main() { diff --git a/tests/language/switch/switch_test.dart b/tests/language/switch/switch_test.dart index 8006bc54d8a..12f1e746470 100644 --- a/tests/language/switch/switch_test.dart +++ b/tests/language/switch/switch_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - // Test switch statement. // VMOptions= diff --git a/tests/language/syntax/syntax_test.dart b/tests/language/syntax/syntax_test.dart index ab700bf71bf..cc02c92b0ac 100644 --- a/tests/language/syntax/syntax_test.dart +++ b/tests/language/syntax/syntax_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - class SyntaxTest { // "this" cannot be used as a field name. SyntaxTest this; //# 01: syntax error diff --git a/tests/language/type/constants_test.dart b/tests/language/type/constants_test.dart index 42c41a2d2ed..9c83212a838 100644 --- a/tests/language/type/constants_test.dart +++ b/tests/language/type/constants_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=patterns,records - // Test that the value of constant type literals are allowed as // constant map keys and case expressions, and the value of non-constant type // literals are not. diff --git a/tests/language/unsorted/assignable_expression_test.dart b/tests/language/unsorted/assignable_expression_test.dart index 8820d9100b0..88eca641f43 100644 --- a/tests/language/unsorted/assignable_expression_test.dart +++ b/tests/language/unsorted/assignable_expression_test.dart @@ -4,7 +4,6 @@ // // @dart=2.19 -// SharedOptions=--enable-experiment=patterns,records // Enable the experiments even though the test itself is pinned to 2.19 since // the error messages relate to patterns. diff --git a/tests/language_2/record_literal_problems_test.dart b/tests/language_2/record_literal_problems_test.dart index 0768617b64b..5c4b825bb20 100644 --- a/tests/language_2/record_literal_problems_test.dart +++ b/tests/language_2/record_literal_problems_test.dart @@ -4,8 +4,6 @@ // @dart = 2.9 -// SharedOptions=--enable-experiment=records - main() { var r1 = const (42); // ^ diff --git a/tests/language_2/record_literal_test.dart b/tests/language_2/record_literal_test.dart index f97d8dabb51..0d6410c44d2 100644 --- a/tests/language_2/record_literal_test.dart +++ b/tests/language_2/record_literal_test.dart @@ -4,8 +4,6 @@ // @dart = 2.9 -// SharedOptions=--enable-experiment=records - main() { var record1 = (1, 2, a: 3, b: 4); // ^ diff --git a/tests/language_2/record_type_problems_test.dart b/tests/language_2/record_type_problems_test.dart index 98718eb0617..f21a2446d0e 100644 --- a/tests/language_2/record_type_problems_test.dart +++ b/tests/language_2/record_type_problems_test.dart @@ -4,8 +4,6 @@ // @dart = 2.9 -// SharedOptions=--enable-experiment=records - main() { (int, int, {/*missing*/}) r1 = (1, 2); //^ diff --git a/tests/language_2/record_type_test.dart b/tests/language_2/record_type_test.dart index edf5293076d..e0a3c3fdd64 100644 --- a/tests/language_2/record_type_test.dart +++ b/tests/language_2/record_type_test.dart @@ -4,8 +4,6 @@ // @dart = 2.9 -// SharedOptions=--enable-experiment=records - main() { (int, int) record1 = (1, 2); //^ diff --git a/tests/web/native/native_mixin_field2_test.dart b/tests/web/native/native_mixin_field2_test.dart index a6dafc45cff..8811b8a9ce9 100644 --- a/tests/web/native/native_mixin_field2_test.dart +++ b/tests/web/native/native_mixin_field2_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - import "native_testing.dart"; // Test that native classes can use ordinary Dart classes with fields diff --git a/tests/web/native/native_mixin_field_test.dart b/tests/web/native/native_mixin_field_test.dart index 253fb3198e3..a45de0b9340 100644 --- a/tests/web/native/native_mixin_field_test.dart +++ b/tests/web/native/native_mixin_field_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - import "native_testing.dart"; // Test that native classes can use ordinary Dart classes with fields diff --git a/tests/web/native/native_mixin_multiple_test.dart b/tests/web/native/native_mixin_multiple_test.dart index 6d9dc44e907..6b723407b20 100644 --- a/tests/web/native/native_mixin_multiple_test.dart +++ b/tests/web/native/native_mixin_multiple_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - import "native_testing.dart"; // Test that native classes can use ordinary Dart classes as mixins. diff --git a/tests/web/native/native_mixin_test.dart b/tests/web/native/native_mixin_test.dart index 67622f69e7d..60e719c86dc 100644 --- a/tests/web/native/native_mixin_test.dart +++ b/tests/web/native/native_mixin_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - import "native_testing.dart"; // Test that native classes can use ordinary Dart classes as mixins. diff --git a/tests/web/native/native_mixin_with_plain_test.dart b/tests/web/native/native_mixin_with_plain_test.dart index f8f61c3c9f3..976c26f5a36 100644 --- a/tests/web/native/native_mixin_with_plain_test.dart +++ b/tests/web/native/native_mixin_with_plain_test.dart @@ -2,8 +2,6 @@ // 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. -// SharedOptions=--enable-experiment=class-modifiers - import "native_testing.dart"; // Test that native classes and ordinary Dart classes can both use the same