blob: 5b1d18b43e2a62afee20044c01987c6ef879cdc2 [file] [log] [blame]
// Copyright (c) 2017, 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 final bool values
/// @description Check that [values] is a read-only property.
/// @author iarkh@unipro.ru
import "dart:collection";
import "../../../Utils/expect.dart";
main() {
dynamic base = new UnmodifiableMapView(
{1 : 1, 2 : 23, 37 : 49});
Expect.throws(() { base.values = null; }, (e) => e is NoSuchMethodError);
}