blob: b942aadb70f0cf43b170eebf6746ee7977406482 [file] [log] [blame]
foo1(int? x) => <int>[?x];
foo2(String? x) => <String>{?x};
foo3(bool? x, num y) => <bool, num>{?x: y};
bar1(int? x) => <int>[?x];
bar2(int? x, bool b) => <int>{ if (b) ?x };
bar3(int? x, List<String> y) => <int>{ for (var _ in y) ?x };
bar4(String x, bool? y) => <String, bool>{x: ?y};
bar5(int? x, num y) => <int, num>{?x: y};
bar6(Symbol? x, String? y) => <Symbol, String>{?x: ?y};
bar7(int? x, double? y, bool b) => <int, double>{ if (b) ?x: ?y };
bar8(bool? x, Symbol? y, List<num> z) => <bool, Symbol>{ for (var _ in z) ?x: ?y };
main() {}
void expectShallowEqualLists(List x, List y) {}
void expectShallowEqualSets(Set x, Set y) {}
void expectShallowEqualMaps(Map x, Map y) {}