// 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. // @dart = 2.9 const map0 = /*cfe.Map()*/ {}; // TODO(johnniwinther): This seems like an odd offset for the constant. It // should probably be at the start of the type arguments. const map1 = /*cfe.Map()*/ {}; const Map map2 = /*cfe.Map()*/ {}; const map3 = /*cfe.Map(String(foo):Int(42))*/ {'foo': 42}; const map4 = /*cfe.Map(String(foo):Int(42),String(bar):Int(87))*/ {'foo': 42, 'bar': 87}; main() { print( /*analyzer.Map*()*/ /*cfe|dart2js.Map()*/ map0); print( /*analyzer.Map*()*/ /*cfe.Map()*/ /*dart2js.Map()*/ map1); print( /*analyzer.Map*()*/ /*cfe.Map()*/ /*dart2js.Map()*/ map2); print( /*analyzer.Map*(String(foo):Int(42))*/ /*cfe.Map(String(foo):Int(42))*/ /*dart2js.Map(String(foo):Int(42))*/ map3); print( /*analyzer.Map*(String(foo):Int(42),String(bar):Int(87))*/ /*cfe.Map(String(foo):Int(42),String(bar):Int(87))*/ /*dart2js.Map(String(foo):Int(42),String(bar):Int(87))*/ map4); }