ddce2824fa
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>
16 lines
463 B
Dart
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; |