14ff1f2d35
Change-Id: Ia10cf89443208ef133dd1ce8d68ee7c6b4129fbb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/276800 Reviewed-by: Sigmund Cherem <sigmund@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Stephen Adams <sra@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com>
33 lines
1.5 KiB
Dart
33 lines
1.5 KiB
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.
|
|
|
|
// ignore: illegal_language_version_override
|
|
// @dart = 2.9
|
|
|
|
const map0 = /*cfe.Map<dynamic,dynamic>()*/ {};
|
|
|
|
// TODO(johnniwinther): This seems like an odd offset for the constant. It
|
|
// should probably be at the start of the type arguments.
|
|
const map1 = <String, int> /*cfe.Map<String,int>()*/ {};
|
|
|
|
const Map<String, int> map2 = /*cfe.Map<String,int>()*/ {};
|
|
|
|
const map3 = /*cfe.Map<String,int>(String(foo):Int(42))*/ {'foo': 42};
|
|
|
|
const map4 = /*cfe.Map<String,int>(String(foo):Int(42),String(bar):Int(87))*/
|
|
{'foo': 42, 'bar': 87};
|
|
|
|
main() {
|
|
print(
|
|
/*analyzer.Map<dynamic, dynamic>*()*/ /*cfe|dart2js.Map<dynamic,dynamic>()*/ map0);
|
|
print(
|
|
/*analyzer.Map<String*, int*>*()*/ /*cfe.Map<String,int>()*/ /*dart2js.Map<String*,int*>()*/ map1);
|
|
print(
|
|
/*analyzer.Map<String*, int*>*()*/ /*cfe.Map<String,int>()*/ /*dart2js.Map<String*,int*>()*/ map2);
|
|
print(
|
|
/*analyzer.Map<String*, int*>*(String(foo):Int(42))*/ /*cfe.Map<String,int>(String(foo):Int(42))*/ /*dart2js.Map<String*,int*>(String(foo):Int(42))*/ map3);
|
|
print(
|
|
/*analyzer.Map<String*, int*>*(String(foo):Int(42),String(bar):Int(87))*/ /*cfe.Map<String,int>(String(foo):Int(42),String(bar):Int(87))*/ /*dart2js.Map<String*,int*>(String(foo):Int(42),String(bar):Int(87))*/ map4);
|
|
}
|