Files
sdk/tests/modular/constant_with_mixin/main.dart
T
Johnni Winther 4025dee2f8 [cfe] Ensure that default values on synthesized constructor are included in outlines
Closes #43538

Change-Id: I58f03d6d71e6de4744003cc28519a20c7e9e7f12
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/164787
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2020-09-29 11:09:14 +00:00

17 lines
470 B
Dart

// Copyright (c) 2020, 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 'a.dart';
const crossModule = B();
main() {
Expect.equals(2.71, sameModule.d);
Expect.equals('default', sameModule.s);
Expect.equals(2.71, crossModule.d);
Expect.equals('default', crossModule.s);
}