blob: f38199831dbc930d5e88033b1e62ba63c949018f [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.
// @dart = 2.9
/// @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
/// @author iarkh@unipro.ru
main() {
const Set set = {...set};
// ^
// [analyzer] unspecified
// [cfe] unspecified
}