mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:29:48 +00:00
7cf6e52cd1
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>
12 lines
404 B
Dart
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]));
|
|
}
|