blob: 52e6064a5a221271a913102316779f179a5be420 [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));
}