Skip to content

Commit fdc6829

Browse files
rakudramaCommit Queue
authored andcommitted
Test for #61222
Bug: #61222 Change-Id: I589c5f804bb24fe0c2983e637ba6e40422a194c7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/442941 Reviewed-by: Lasse Nielsen <[email protected]> Commit-Queue: Stephen Adams <[email protected]>
1 parent 10569cb commit fdc6829

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)