Files
sdk/tests/modular/nested_constants/main.dart
T
Johnni Winther 9ec8d9ff25 [ddc] Merge modular/issue37523 test into modular/nested_constants test
Change-Id: I5d60de4468f8608fe275fccd2e4f833a8bcfb89d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/112340
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2019-08-09 17:33:44 +00:00

22 lines
495 B
Dart

// Copyright (c) 2019, 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';
import 'def.dart';
const c1 = A(B());
const c2 = ab;
const c3 = A(b);
main() {
Expect.equals(c1, c2);
Expect.equals(c2, c3);
const v1 = A(B());
const v2 = ab;
const v3 = A(b);
Expect.equals(v1, v2);
Expect.equals(v2, v3);
}