dart-sdk/tests/language/canonicalize/const2_test.dart
Robert Nystrom 7cf6e52cd1 Migrate language_2/canonicalize to NNBD.
Change-Id: I603740794fc286527f7f37c0d57feb9b57157784
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/141661
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
2020-03-31 00:42:49 +00:00

12 lines
404 B
Dart

// 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.
import "package:expect/expect.dart";
// Check that compile-time constants are correctly canonicalized.
main() {
Expect.isFalse(identical(const <num>[1, 2], const <num>[1.0, 2.0]));
}