ca8e5baccd
Bug: 34443 Change-Id: I2b0edb9f6f1e642c92a656301f9b8a85c3e4658c Reviewed-on: https://dart-review.googlesource.com/74669 Commit-Queue: Mike Fairhurst <mfairhurst@google.com> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
13 lines
396 B
Dart
13 lines
396 B
Dart
// Copyright (c) 2014, 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.
|
|
|
|
const intValue = 0;
|
|
const double c = 0.0; //# 01: ok
|
|
const double d = intValue; //# 02: compile-time error
|
|
|
|
main() {
|
|
print(c); //# 01: continued
|
|
print(d); //# 02: continued
|
|
}
|