blob: 2e4cae4465538db124f0b6c39d670ae047ac72c9 [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 The existing rules against self-reference prohibit a collection
* from spreading into itself:
* const list = [...list]; // Error.
* @description: Checks that constant set cannot spread itself
* @compile-error
* @author iarkh@unipro.ru
*/
// SharedOptions=--enable-experiment=constant-update-2018
main() {
const Map map = {...?map};
}