blob: 1acd773a5e947aed60ac800ffaadda48d17a343f [file] [log] [blame]
// @dart = 2.9
library test;
class C<T> {
C.optional(void func([T x])) {}
C.named(void func({T x})) {}
}
void optional_toplevel([x = const [0]]) {}
void named_toplevel({x: const [0]}) {}
main() {}