blob: a22d3d3ce107dd3fb7d08556fbdd705ea71553b3 [file] [log] [blame]
// Copyright (c) 2020, 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.
// @dart=2.9
main() {
var list1 = <int>[0];
var list2 = <num>[0];
dynamic list3 = <int>[0];
var list = <int>[0, ...list1, ...list2, ...list3, if (true) 2];
var set1 = <int>{0};
var set2 = <num>{0};
dynamic set3 = <int>{0};
var set = <int>{0, ...set1, ...set2, ...set3, if (true) 2};
var map1 = <int, String>{0: 'foo'};
var map2 = <num, Object>{0: 'bar'};
dynamic map3 = <int, String>{0: 'baz'};
var map = <int, String>{
0: 'foo',
if (true) 2: 'baz'