mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
Remove constant-update-2018 flag from tests.
Change-Id: I85d3d0180bb7f5973ad2da946a3519c553fc7f92 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113991 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Aske Simon Christensen <askesc@google.com>
This commit is contained in:
parent
e4c552fb48
commit
88c0c11612
|
@ -2,8 +2,6 @@
|
|||
// for 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.
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
// for 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();
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
// for details. All rights 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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
// for details. All rights 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() {
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
// for details. All rights 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";
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
// for details. All rights 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.
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
// for details. All rights 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";
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
// for details. All rights 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.
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
// for details. All rights 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";
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
// for details. All rights 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.
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
// for details. All rights 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() {
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
// for details. All rights 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";
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
// for details. All rights 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';
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
// for details. All rights 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';
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
// for details. All rights 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';
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
// for details. All rights 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.
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
// for details. All rights 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";
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
// for details. All rights 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';
|
||||
|
|
|
@ -6,5 +6,3 @@
|
|||
# after serialization across modules.
|
||||
dependencies:
|
||||
main: [def, expect]
|
||||
flags:
|
||||
- constant-update-2018
|
||||
|
|
|
@ -6,5 +6,3 @@
|
|||
# after serialization across modules.
|
||||
dependencies:
|
||||
main: def
|
||||
flags:
|
||||
- constant-update-2018
|
||||
|
|
|
@ -5,5 +5,3 @@
|
|||
dependencies:
|
||||
main: [module1, module2, expect]
|
||||
module2: [module1]
|
||||
flags:
|
||||
- constant-update-2018
|
|
@ -6,5 +6,3 @@
|
|||
# module context.
|
||||
dependencies:
|
||||
main: [def, expect]
|
||||
flags:
|
||||
- constant-update-2018
|
||||
|
|
Loading…
Reference in a new issue