blob: 0de7795c2438ae3583751e2db4e186627d9be02e [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 The predefined Dart function identical() is defined such that
* identical(c1, c2) iff:
* • c1 and c2 are the same object.
* @description Checks that an int and a double representing the same numerical
* value are not identical.
* @author kaigorodov
* @issue 42222
*/
import "../../../Utils/expect.dart";
var i1 = 2;
var d2 = 2.0;
main() {
Expect.isFalse(identical(i1, d2));
}