blob: 920bc2da4317d4fca585e36f181c4ccaa303b6b8 [file] [log] [blame]
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
// 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.
// Tests the usage of wildcards in enum constructors and fields.
import 'package:expect/expect.dart';
enum A { _ }
enum B {
e(2);
const B(int _) : _ = 1;
final int _;
}
void main() {
A._;
Expect.equals(1, B.e._);
}