diff --git a/tests/compiler/dart2js_extra/cfe_instance_constant_test.dart b/tests/compiler/dart2js_extra/cfe_instance_constant_test.dart index 6fbd051cb95..0c202c1ce04 100644 --- a/tests/compiler/dart2js_extra/cfe_instance_constant_test.dart +++ b/tests/compiler/dart2js_extra/cfe_instance_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. -// dart2jsOptions=--enable-experiment=constant-update-2018 - // Regression test for CFE constant evaluation. The evaluation of [Class9.field] // assumed that its initializer did not hold an unevaluated constant. diff --git a/tests/compiler/dart2js_extra/constant_folding_test.dart b/tests/compiler/dart2js_extra/constant_folding_test.dart index 393994a88ad..af4b61451c8 100644 --- a/tests/compiler/dart2js_extra/constant_folding_test.dart +++ b/tests/compiler/dart2js_extra/constant_folding_test.dart @@ -4,8 +4,6 @@ import "package:expect/expect.dart"; -// SharedOptions=--enable-experiment=constant-update-2018 - void main() { const BitNot(42, 4294967253).check(); const BitNot(4294967253, 42).check(); diff --git a/tests/compiler/dart2js_extra/unused_local_const_test.dart b/tests/compiler/dart2js_extra/unused_local_const_test.dart index acd2076bf46..58291298fc8 100644 --- a/tests/compiler/dart2js_extra/unused_local_const_test.dart +++ b/tests/compiler/dart2js_extra/unused_local_const_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. -// dart2jsOptions=--enable-experiment=constant-update-2018 - class A { const A(); diff --git a/tests/language_2/abstract_equal_test.dart b/tests/language_2/abstract_equal_test.dart index 2ff5b59b0a0..bcfb3e89793 100644 --- a/tests/language_2/abstract_equal_test.dart +++ b/tests/language_2/abstract_equal_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=constant-update-2018 - class A { bool operator ==(other); const A(); diff --git a/tests/language_2/const_double_in_int_op_test.dart b/tests/language_2/const_double_in_int_op_test.dart index d9432f17070..ed123053514 100644 --- a/tests/language_2/const_double_in_int_op_test.dart +++ b/tests/language_2/const_double_in_int_op_test.dart @@ -2,7 +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=constant-update-2018,triple-shift +// SharedOptions=--enable-experiment=triple-shift main() { const dynamic i1 = 3; diff --git a/tests/language_2/constants_2018/const_type_test.dart b/tests/language_2/constants_2018/const_type_test.dart index 14a9bf996c1..c6c3f333e85 100644 --- a/tests/language_2/constants_2018/const_type_test.dart +++ b/tests/language_2/constants_2018/const_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=constant-update-2018 - // Tests that types do matter when an expression is evaluated as constant. main() { diff --git a/tests/language_2/constants_2018/constant_type_literal_test.dart b/tests/language_2/constants_2018/constant_type_literal_test.dart index a644ff04966..b886d774892 100644 --- a/tests/language_2/constants_2018/constant_type_literal_test.dart +++ b/tests/language_2/constants_2018/constant_type_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=constant-update-2018 - // Tests that non-deferred type literals are constant expressions. import "dart:core"; diff --git a/tests/language_2/constants_2018/constant_types_test.dart b/tests/language_2/constants_2018/constant_types_test.dart index 5262729d306..5defae9d8a6 100644 --- a/tests/language_2/constants_2018/constant_types_test.dart +++ b/tests/language_2/constants_2018/constant_types_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=constant-update-2018 - // Tests that only constant types are allowed in some positions, // not type parameters. diff --git a/tests/language_2/constants_2018/equals_test.dart b/tests/language_2/constants_2018/equals_test.dart index fbbc87626d6..5c74e69cb5e 100644 --- a/tests/language_2/constants_2018/equals_test.dart +++ b/tests/language_2/constants_2018/equals_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=constant-update-2018 - // Tests that equality is allowed for receivers of specific types. import "package:expect/expect.dart"; diff --git a/tests/language_2/constants_2018/potential_const_dynamic_test.dart b/tests/language_2/constants_2018/potential_const_dynamic_test.dart index d16f5e43793..90de32fda42 100644 --- a/tests/language_2/constants_2018/potential_const_dynamic_test.dart +++ b/tests/language_2/constants_2018/potential_const_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=constant-update-2018 - // Tests that a dynamic type does not affect whether an expression is // potentially constant, the actual type of the value of an experssion // only matters if the expression is evaluated as a constant. diff --git a/tests/language_2/constants_2018/potential_const_shortcircuit_test.dart b/tests/language_2/constants_2018/potential_const_shortcircuit_test.dart index 680ffeeb033..fe99bbbcf1d 100644 --- a/tests/language_2/constants_2018/potential_const_shortcircuit_test.dart +++ b/tests/language_2/constants_2018/potential_const_shortcircuit_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=constant-update-2018 - // Tests that short-circuit operators do not care about the unevaluated part. import "package:expect/expect.dart"; diff --git a/tests/language_2/constants_2018/potential_const_type_test.dart b/tests/language_2/constants_2018/potential_const_type_test.dart index 6438e8b809e..0f065077471 100644 --- a/tests/language_2/constants_2018/potential_const_type_test.dart +++ b/tests/language_2/constants_2018/potential_const_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=constant-update-2018 - // Tests that types do not affect whether an expression is potentially // constant, they only matter if the expression is evaluated as a constant. diff --git a/tests/language_2/constants_2018/type_cast_test.dart b/tests/language_2/constants_2018/type_cast_test.dart index 3171204f6e0..72aa11e4699 100644 --- a/tests/language_2/constants_2018/type_cast_test.dart +++ b/tests/language_2/constants_2018/type_cast_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=constant-update-2018 - // Tests that type casts (as) are allowed. main() { diff --git a/tests/language_2/constants_2018/type_check_test.dart b/tests/language_2/constants_2018/type_check_test.dart index c5ca055648b..7c7a318fe1c 100644 --- a/tests/language_2/constants_2018/type_check_test.dart +++ b/tests/language_2/constants_2018/type_check_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=constant-update-2018 - // Tests that type checks (is) are allowed. import "package:expect/expect.dart"; diff --git a/tests/language_2/control_flow_collections/if_const_error_test.dart b/tests/language_2/control_flow_collections/if_const_error_test.dart index 87cd5016b30..bc1d0e27179 100644 --- a/tests/language_2/control_flow_collections/if_const_error_test.dart +++ b/tests/language_2/control_flow_collections/if_const_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=constant-update-2018 - import 'dart:collection'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/control_flow_collections/if_const_test.dart b/tests/language_2/control_flow_collections/if_const_test.dart index 8eba551083f..20a2c25472f 100644 --- a/tests/language_2/control_flow_collections/if_const_test.dart +++ b/tests/language_2/control_flow_collections/if_const_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=constant-update-2018 - import 'package:expect/expect.dart'; import 'utils.dart'; diff --git a/tests/language_2/lazy_spread_test.dart b/tests/language_2/lazy_spread_test.dart index eedb95782a5..62af46ff885 100644 --- a/tests/language_2/lazy_spread_test.dart +++ b/tests/language_2/lazy_spread_test.dart @@ -6,8 +6,6 @@ // contain a spread. // Regression test for https://github.com/dart-lang/sdk/issues/36812 -// SharedOptions=--enable-experiment=constant-update-2018 - const b = bool.fromEnvironment("foo"); main() { diff --git a/tests/language_2/spread_collections/const_error_test.dart b/tests/language_2/spread_collections/const_error_test.dart index 54548bc62a5..e9fcfd2014d 100644 --- a/tests/language_2/spread_collections/const_error_test.dart +++ b/tests/language_2/spread_collections/const_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=constant-update-2018 - import 'dart:collection'; import 'helper_classes.dart'; diff --git a/tests/language_2/spread_collections/const_test.dart b/tests/language_2/spread_collections/const_test.dart index 9f09c547461..a29b60746ff 100644 --- a/tests/language_2/spread_collections/const_test.dart +++ b/tests/language_2/spread_collections/const_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=constant-update-2018 - import 'package:expect/expect.dart'; // Typed as dynamic to also test spreading a value of type dynamic. diff --git a/tests/language_2/unevaluated_field.dart b/tests/language_2/unevaluated_field.dart index d674af5a744..3567a7cef4f 100644 --- a/tests/language_2/unevaluated_field.dart +++ b/tests/language_2/unevaluated_field.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=constant-update-2018 - // Test that environment constants in field initializers work properly. import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/osr_nonempty_stack_test.dart b/tests/language_2/vm/osr_nonempty_stack_test.dart index d7c977a8cec..9797e6e689a 100644 --- a/tests/language_2/vm/osr_nonempty_stack_test.dart +++ b/tests/language_2/vm/osr_nonempty_stack_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=constant-update-2018 - // Test with OSR on non-empty stack (block expression). import 'dart:core'; diff --git a/tests/modular/constants_2018/modules.yaml b/tests/modular/constants_2018/modules.yaml index e5a6190bed9..02519fa161b 100644 --- a/tests/modular/constants_2018/modules.yaml +++ b/tests/modular/constants_2018/modules.yaml @@ -6,5 +6,3 @@ # after serialization across modules. dependencies: main: [def, expect] -flags: - - constant-update-2018 diff --git a/tests/modular/int_js_number/modules.yaml b/tests/modular/int_js_number/modules.yaml index e8cdeea3ffb..a02b69a9529 100644 --- a/tests/modular/int_js_number/modules.yaml +++ b/tests/modular/int_js_number/modules.yaml @@ -6,5 +6,3 @@ # after serialization across modules. dependencies: main: def -flags: - - constant-update-2018 diff --git a/tests/modular/issue37794/modules.yaml b/tests/modular/issue37794/modules.yaml index c4954a91a9f..fc4b66e5dfd 100644 --- a/tests/modular/issue37794/modules.yaml +++ b/tests/modular/issue37794/modules.yaml @@ -5,5 +5,3 @@ dependencies: main: [module1, module2, expect] module2: [module1] -flags: - - constant-update-2018 \ No newline at end of file diff --git a/tests/modular/nested_constants/modules.yaml b/tests/modular/nested_constants/modules.yaml index 61a75046726..1d3752c3cf3 100644 --- a/tests/modular/nested_constants/modules.yaml +++ b/tests/modular/nested_constants/modules.yaml @@ -6,5 +6,3 @@ # module context. dependencies: main: [def, expect] -flags: - - constant-update-2018