blob: aab61d722206c722719646d16f179a50f4d31fca [file] [log] [blame]
// Copyright (c) 2012, 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.
// This test is making sure we don't try to constant fold numbers
// where the semantics differ at compile-time (Dart) and runtime (JS).
import "package:expect/expect.dart";
foo() => 0.0;
bar() => 0;
main() {
Expect.equals(foo(), bar());
Expect.equals(0.0, 0);
}