blob: c988dd0ecc6ba794413454ffee4a406632bcabb0 [file] [log] [blame]
// 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.
/// @assertion n/a
/// @description: Checks that map with spread element cannot reference itself
/// @author iarkh@unipro.ru
main() {
Map m1 = {...m1};
// ^^
// [analyzer] unspecified
// [cfe] unspecified
Map m2 = {...{...m2}};
// ^^
// [analyzer] unspecified
// [cfe] unspecified
Map m3 = {...{m3}};
// ^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
Map m4 = {...?m4};
// ^^
// [analyzer] unspecified
// [cfe] unspecified
Map m5 = {...{...?m5}};
// ^^
// [analyzer] unspecified
// [cfe] unspecified
Map m6 = {...{?m6}};
// ^^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
}