Retire digit-separators experiment in SDK 3.7.

Change-Id: I6a37665fa76059f665b52844e4a9784dca6224b0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/400381
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Lasse Nielsen <lrn@google.com>
This commit is contained in:
Lasse R.H. Nielsen
2024-12-18 10:57:18 -08:00
committed by Commit Queue
parent 601e85438f
commit fe0552db17
8 changed files with 4 additions and 9 deletions
@@ -55,7 +55,7 @@ enum ExperimentalFlag {
digitSeparators(
name: 'digit-separators',
isEnabledByDefault: true,
isExpired: false,
isExpired: true,
experimentEnabledVersion: const Version(3, 6),
experimentReleasedVersion: const Version(3, 6)),
@@ -710,7 +710,7 @@ class IsExpired {
static const bool control_flow_collections = true;
/// Expiration status of the experiment "digit-separators"
static const bool digit_separators = false;
static const bool digit_separators = true;
/// Expiration status of the experiment "enhanced-enums"
static const bool enhanced_enums = true;
@@ -110,7 +110,7 @@ class ExperimentalFlag {
static const ExperimentalFlag digitSeparators = const ExperimentalFlag(
name: 'digit-separators',
isEnabledByDefault: true,
isExpired: false,
isExpired: true,
enabledVersion: const Version(3, 6),
experimentEnabledVersion: const Version(3, 6),
experimentReleasedVersion: const Version(3, 6));
-1
View File
@@ -1782,7 +1782,6 @@ UnexpectedSeparatorInNumber:
problemMessage: "Digit separators ('_') in a number literal can only be placed between two digits."
correctionMessage: "Try removing the '_'."
analyzerCode: UNEXPECTED_SEPARATOR_IN_NUMBER
experiments: digit-separators
expression:
- '123_'
- '1.23_'
@@ -1 +0,0 @@
--enable-experiment=digit-separators
@@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// SharedOptions=--enable-experiment=digit-separators
import "package:expect/expect.dart";
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=digit-separators
import "package:expect/expect.dart";
import 'package:expect/variations.dart' as v;
+1
View File
@@ -195,6 +195,7 @@ features:
print('feature enabled');
}
help: "Number literals with digit separators."
expired: true
inference-update-3: # See https://github.com/dart-lang/language/issues/1618
enabledIn: '3.4.0'