blob: 1cff5f72bd0e5be9768b4d693d9259cfcf72c486 [file] [log] [blame]
enum E0 {
one(1, bar: 1),
two(2, bar: 2);
final int foo;
final int bar;
const E0(this.foo, {required this.bar});
}
enum E1<X> {
one(foo: "1"),
two(foo: 2);
final X foo;
const E1({required this.foo});
}
enum E2<X, Y, Z> {
one(1, bar: "1", baz: 3.14),
two("2", baz: 3.14, bar: 2),
three(3.0, bar: false);
final X foo;
final Y bar;
final Z? baz;
const E2(this.foo, {required this.bar, this.baz = null});
}
main() {}