Skip to content

Commit

Permalink
Issue #490: useless constant-update-2018 option removed from the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
iarkh committed Oct 4, 2019
1 parent 1d1841c commit 76caa53
Show file tree
Hide file tree
Showing 102 changed files with 35 additions and 163 deletions.
2 changes: 1 addition & 1 deletion Language/Expressions/Constants/bitwise_operators_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* therefore, constant expressions.
* @author iefremov
*/
// SharedOptions=--enable-experiment=triple-shift,constant-update-2018
// SharedOptions=--enable-experiment=triple-shift

class C {
final a, b, c, d, e, f, g, h;
Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/bitwise_operators_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* initialize a constant variable if e is boolean.
* @compile-error
* @author iefremov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018
const m = ~true;

main() {
Expand Down
3 changes: 1 addition & 2 deletions Language/Expressions/Constants/bitwise_operators_t03.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
* used to initialize a constant variable.
* @compile-error
* @author kaigorodov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

final constList = const [
true & 1,
];
Expand Down
3 changes: 1 addition & 2 deletions Language/Expressions/Constants/bitwise_operators_t04.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
* initialize a constant variable.
* @compile-error
* @author kaigorodov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

final constList = const [
~"oneoneeleven"
];
Expand Down
3 changes: 1 addition & 2 deletions Language/Expressions/Constants/bitwise_operators_t05.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
* used to initialize a constant variable.
* @compile-error
* @author kaigorodov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

final constList = const [
1 << "one and a half"
];
Expand Down
3 changes: 1 addition & 2 deletions Language/Expressions/Constants/bitwise_operators_t06.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
* used to initialize a constant variable.
* @compile-error
* @author kaigorodov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

final constList = const [
true >> 25
];
Expand Down
3 changes: 2 additions & 1 deletion Language/Expressions/Constants/bitwise_operators_t07.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
* @compile-error
* @author [email protected]
*/
// SharedOptions=--enable-experiment=triple-shift,constant-update-2018
// SharedOptions=--enable-experiment=triple-shift

final constList = const [
1 >>> "one and a half"
];
Expand Down
2 changes: 1 addition & 1 deletion Language/Expressions/Constants/bitwise_operators_t08.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @compile-error
* @author [email protected]
*/
// SharedOptions=--enable-experiment=triple-shift,constant-update-2018
// SharedOptions=--enable-experiment=triple-shift

final constList = const [
true >>> 25
Expand Down
3 changes: 1 addition & 2 deletions Language/Expressions/Constants/constant_constructor_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
* an element of a constant list literal and is, therefore, a constant
* expression.
* @author iefremov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

import '../../../Utils/expect.dart';

class A {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* a prefix is a constant expression.
* @author [email protected]
*/
// SharedOptions=--enable-experiment=constant-update-2018

import '../../../Utils/expect.dart';
import 'constants_lib.dart' as clib;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @compile-error
* @author [email protected]
*/
// SharedOptions=--enable-experiment=constant-update-2018

import '../../../Utils/expect.dart';
import 'constants_lib.dart' deferred as clib;

Expand Down
2 changes: 1 addition & 1 deletion Language/Expressions/Constants/constant_list_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @author iefremov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

import '../../../Utils/expect.dart';

final constList = const [const ["hello", "world"]];
Expand Down
2 changes: 1 addition & 1 deletion Language/Expressions/Constants/constant_list_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @author iefremov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

const a = [];

main() {
Expand Down
2 changes: 1 addition & 1 deletion Language/Expressions/Constants/constant_map_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @author iefremov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

import '../../../Utils/expect.dart';

final constMap = const {"a" : 1, "b" : 2};
Expand Down
2 changes: 1 addition & 1 deletion Language/Expressions/Constants/constant_map_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @compile-error
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

const a = {"a" : "b"};

main() {
Expand Down
3 changes: 1 addition & 2 deletions Language/Expressions/Constants/depending_on_itself_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
* is initialized with itself.
* @compile-error
* @author iefremov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

const m = m;

main() {
Expand Down
3 changes: 1 addition & 2 deletions Language/Expressions/Constants/depending_on_itself_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
* reference in a constant variable's initialization.
* @compile-error
* @author iefremov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

const a1 = a10;
const a2 = a1;
const a3 = a2;
Expand Down
3 changes: 1 addition & 2 deletions Language/Expressions/Constants/depending_on_itself_t03.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
* field depends on a const constructor and vice versa.
* @compile-error
* @author iefremov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

class A {
const A();
final m = const A();
Expand Down
3 changes: 1 addition & 2 deletions Language/Expressions/Constants/equals_expression_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
* @description Checks that various expressions of the specified forms can be
* elements of a constant list literal and are, therefore, constant expressions.
* @author iefremov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

import '../../../Utils/expect.dart';

final constList = const [
Expand Down
3 changes: 1 addition & 2 deletions Language/Expressions/Constants/equals_expression_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
* string or boolean value.
* @compile-error
* @author iefremov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

class A {
const A();
}
Expand Down
3 changes: 1 addition & 2 deletions Language/Expressions/Constants/equals_expression_t03.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
* value, is used to initialize a constant variable.
* @compile-error
* @author kaigorodov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

class A {
const A() : a = "hello";
final a;
Expand Down
3 changes: 1 addition & 2 deletions Language/Expressions/Constants/exception_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
* evaluation of a compile-time constant causes a compile-time error.
* @compile-error
* @author iefremov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

const m = 1 % 0;

main() {
Expand Down
1 change: 0 additions & 1 deletion Language/Expressions/Constants/exception_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @author iefremov
* @compile-error
*/
// SharedOptions=--enable-experiment=constant-update-2018

const m = 1 ~/ 0;

Expand Down
3 changes: 1 addition & 2 deletions Language/Expressions/Constants/exception_t03.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
* compile-time constant causes a compile-time error.
* @compile-error
* @author iefremov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

class A {
const A(z) : x = z + z;
final x;
Expand Down
2 changes: 1 addition & 1 deletion Language/Expressions/Constants/exception_t04.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @compile-error
* @author kaigorodov
*/
// SharedOptions=--enable-experiment=constant-update-2018

class C {
final g;
const C() :
Expand Down
2 changes: 1 addition & 1 deletion Language/Expressions/Constants/exception_t05.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @compile-error
* @author kaigorodov
*/
// SharedOptions=--enable-experiment=constant-update-2018

class C {
final m;

Expand Down
3 changes: 1 addition & 2 deletions Language/Expressions/Constants/identical_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
* @description Checks that various expressions of the specified forms can be
* used in a constant list literal and are, therefore, constant expressions.
* @author iefremov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018


import '../../../Utils/expect.dart';

Expand Down
2 changes: 0 additions & 2 deletions Language/Expressions/Constants/identical_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* a constant expressions.
* @compile-error
* @author kaigorodov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

import '../../../Utils/expect.dart';

Expand Down
1 change: 0 additions & 1 deletion Language/Expressions/Constants/identical_t03.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* @compile-error
* @author ilya
*/
// SharedOptions=--enable-experiment=constant-update-2018

var x;
const y = identical(x, x);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
* @description Checks that an identifier expression that denotes a constant
* variable can be assigned to a constant variable.
* @author kaigorodov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

import '../../../Utils/expect.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
* @description Checks that an identifier expression that denotes a class
* can be assigned to a constant variable.
* @author kaigorodov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

import '../../../Utils/expect.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
* @description Checks that an identifier expression that denotes a type
* parameter cannot be used as const initializer.
* @compile-error
* @issue 27477
* @Issue 27477
* @author rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

class C<T> {
static const List lst = const [T];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* can be assigned to a constant variable.
* @author ilya
*/
// SharedOptions=--enable-experiment=constant-update-2018

import '../../../Utils/expect.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* type alias is a constant expression.
* @author ilya
*/
// SharedOptions=--enable-experiment=constant-update-2018

import '../lib.dart' as prefix;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* @compile-error
* @author [email protected]
*/
// SharedOptions=--enable-experiment=constant-update-2018

import '../lib.dart' deferred as prefix;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* @compile-error
* @author [email protected]
*/
// SharedOptions=--enable-experiment=constant-update-2018

import '../lib.dart' deferred as prefix;

Expand Down
1 change: 0 additions & 1 deletion Language/Expressions/Constants/integer_size_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @compile-error
* @author [email protected]
*/
// SharedOptions=--enable-experiment=constant-update-2018

main() {
var i = 0x7FFFFFFFFFFFFFFF0;
Expand Down
1 change: 0 additions & 1 deletion Language/Expressions/Constants/integer_size_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @compile-error
* @author [email protected]
*/
// SharedOptions=--enable-experiment=constant-update-2018

main() {
var i = 0x80000000000000000;
Expand Down
1 change: 0 additions & 1 deletion Language/Expressions/Constants/integer_size_t03.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
* numeric value -2^63 <= i < 2^63
* @author [email protected]
*/
// SharedOptions=--enable-experiment=constant-update-2018

import "dart:math";
import '../../../Utils/expect.dart';
Expand Down
1 change: 0 additions & 1 deletion Language/Expressions/Constants/integer_size_t04.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @description Checks valid compile-time integer constants
* @author [email protected]
*/
// SharedOptions=--enable-experiment=constant-update-2018

import '../../../Utils/expect.dart';

Expand Down
1 change: 0 additions & 1 deletion Language/Expressions/Constants/literal_boolean_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* @author iefremov
* @reviewer rodionov
*/
// SharedOptions=--enable-experiment=constant-update-2018

import '../../../Utils/expect.dart';

Expand Down
Loading

0 comments on commit 76caa53

Please sign in to comment.