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