blob: 36b3ca3637ee1731939495f833bf4f0c71f7e943 [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 static type of a literal double is double.
/// @description Checks that no static warnings are produced when assigning
/// double literals to a typed double variable.
/// @author iefremov
main() {
double d = 1.0;
d = 0.0;
d = 124.12414148124e-1242;
d = double.nan;
}