e106b7bf09
Enum constructors for enums with mixins were not built in the outline phase because code assumes that initializers have to be present in order to have a non-trivial constant constructor. Closes #56681 Change-Id: Id614e3cde24ba3649db9ca67d938ba21575d7454 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/384264 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Jens Johansen <jensj@google.com>
16 lines
376 B
Dart
16 lines
376 B
Dart
// Copyright (c) 2024, 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.
|
|
|
|
class Super {
|
|
final int field1;
|
|
|
|
const Super(this.field1);
|
|
}
|
|
|
|
class Class extends Super {
|
|
final int field2;
|
|
|
|
const Class(super.field1, this.field2);
|
|
}
|