Skip to content

Commit 4c35154

Browse files
authored
Add more experimental features from 3.0 into the experiments package (#3352)
* try this * Hmmmm... patterns? * Remove the patterns bits completely * rebuild * deleted wrong file
1 parent acfb246 commit 4c35154

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

testing/test_package_experiments/analysis_options.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ analyzer:
22
# enable for analysis on test package sources.
33
enable-experiment:
44
- records
5+
- sealed-class
6+
- class-modifiers
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
5+
library class_modifiers.dart;
6+
7+
class A {}
8+
base class B {}
9+
interface class C {}
10+
final class D {}
11+
sealed class E {}
12+
abstract class F {}
13+
abstract base class G {}
14+
abstract interface class H {}
15+
abstract final class I {}
16+
mixin class J {}
17+
base mixin class K {}
18+
abstract mixin class L {}
19+
abstract base mixin class M {}
20+
mixin N {}
21+
base mixin O {}
22+
interface mixin P {}
23+
final mixin Q {}
24+
sealed mixin R {}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
5+
library sealed_classes.dart;
6+
7+
sealed class A {
8+
9+
}

0 commit comments

Comments
 (0)