We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10569cb commit fdc6829Copy full SHA for fdc6829
tests/language/regress/regress61222_test.dart
@@ -0,0 +1,17 @@
1
+// Copyright (c) 2025, 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
+// Test for http://dartbug.com/61222.
6
7
+import 'package:expect/expect.dart';
8
9
+void main() {
10
+ var eList = <E>[?E.vn(), ?E.v1()];
11
+ Expect.listEquals([E.v1()], eList);
12
+}
13
14
+extension type const E._(int? _) {
15
+ const E.vn() : this._(null);
16
+ const E.v1() : this._(1);
17
0 commit comments