blob: f88d82f9f765f1d0989dd228aac8c4b3b09f49b2 [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.
*/
/**
* @assertion abstract Set<E> intersection(Set<Object> other)
* @description Checks that null elements don't cause any errors.
* @author msyabro
* @reviewer rodionov
*/
main() {
new Set.from([1, 2, 3, 4]).intersection([null].toSet());
new Set.from([1, 2, 3, 4]).intersection([null, 1].toSet());
}