blob: c3bd0ec4827c9b563cb8e59d099fed7809e403ef [file] [log] [blame]
// Copyright (c) 2011, 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 Associates the [key] with the given [value].
/// @description Checks that null key is allowed.
/// @author msyabro
library operator_subscripted_assignment_A01_t01;
import "../../../Utils/expect.dart";
test(Map create([Map content])) {
Map map = create();
Expect.isFalse(map.containsKey(null));
map[null] = null;
Expect.isTrue(map.containsKey(null));
}