Skip to content

Commit

Permalink
dart-lang#2119. Add missing experimental flags
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrekhov committed Jan 10, 2024
1 parent 720cc61 commit 1c8cf93
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
/// exhaustiveness is defined by the type of the value of the constant.
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

import "../../Utils/expect.dart";

extension type const BoolET1(bool _) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
/// then it is not exhausted
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

class C {
final bool v;
const C(this.v);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
/// then it is not exhausted
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

import "../../Utils/expect.dart";

class C {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
/// representation type`List`.
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

extension type ET1<T>(List<T> _) {}
extension type ET2<T>(List<T> _) implements List<T> {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
/// and the set of cases is not exhaustive.
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

extension type ET1<T>(List<T> _) {}
extension type ET2<T>(List<T> _) implements List<T> {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
/// and the set of cases is not exhaustive.
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

extension type ET1<T>(List<T> _) {}
extension type ET2<T>(List<T> _) implements List<T> {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
/// and the set of cases is not exhaustive.
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

extension type ET1<T>(List<T> _) {}
extension type ET2<T>(List<T> _) implements List<T> {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
/// `List` as a representation type can be exhaustive
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

import "dart:collection";
import "../../Utils/expect.dart";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
/// `List` as a representation type can be exhaustive
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

import "dart:collection";
import "../../Utils/expect.dart";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
/// with a negative length as a representation type can be exhaustive
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

import "dart:collection";
import "../../Utils/expect.dart";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
/// with a negative length as a representation type can be exhaustive
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

import "dart:collection";
import "../../Utils/expect.dart";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
/// subpattern and a type `Null` is exhausted. Test switch statement
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=inline-class

import "../../Utils/expect.dart";

extension type const BoolET1(bool _) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
/// subpattern and a type `Null` is exhausted. Test switch expression
/// @author sgrekhov22@gmail.com
// SharedOptions=--enable-experiment=inline-class

import "../../Utils/expect.dart";

extension type const ObjectET1(Object _) {}
Expand Down

0 comments on commit 1c8cf93

Please sign in to comment.