41c50d9ac9
+ add tests for various fixes + add canonicalization support in serialization Change-Id: Ib6a8bfd6073dbd93c1ba4fd9d2feff77ac43b178 Reviewed-on: https://dart-review.googlesource.com/c/81402 Commit-Queue: Johnni Winther <johnniwinther@google.com> Auto-Submit: Johnni Winther <johnniwinther@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com>
17 lines
433 B
Dart
17 lines
433 B
Dart
// Copyright (c) 2018, 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() {
|
|
createMap();
|
|
createDictionary();
|
|
returnUnion(true);
|
|
returnUnion(false);
|
|
}
|
|
|
|
createMap() => {0: 1};
|
|
|
|
createDictionary() => {'foo': 'bar'};
|
|
|
|
returnUnion(bool b) => b ? createMap() : createDictionary();
|