Files
sdk/pkg/front_end/testcases/spread_collection.dart
T
Dan Rubel ddce2824fa Add more spread collection fasta test cases
Change-Id: I998234da8f9e3f1e5902f8cd3fcad884c012f128
Reviewed-on: https://dart-review.googlesource.com/c/90080
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2019-01-17 20:29:47 +00:00

16 lines
463 B
Dart

// Copyright (c) 2019, 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.
main() {
final aList = <int>[1, ...[2], ...?[3]];
final aMap = <int, int>{1: 1, ...{2: 2}, ...?{3: 3}};
final aSet = <int>{1, ...[2], ...?[3]};
final aSetOrMap = {...foo()};
print(aList);
print(aSet);
print(aMap);
}
foo() => null;