Files
sdk/tests/modular/constant_with_mixin/a.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

24 lines
463 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.
abstract class A {
const A({
this.d = 3.14,
this.s = 'default',
});
final double d;
final String s;
}
class B extends A with M {
const B({double d = 2.71}) : super(d: d);
}
mixin M on A {
m1() {}
}
const sameModule = B();