mirror of
https://github.com/dart-lang/sdk
synced 2024-09-19 14:51:30 +00:00
ffc5a96074
Reland
52d1b4e96d
with a fix to the test so that it does not use super mixins.
Change-Id: Id1283b1066e853baca4c39402c255ceaa90662f4
Reviewed-on: https://dart-review.googlesource.com/43002
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Kevin Millikin <kmillikin@google.com>
24 lines
640 B
Dart
24 lines
640 B
Dart
// Copyright (c) 2018, 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.
|
|
|
|
// There was a bug in the Kernel mixin transformation: it copied factory
|
|
// constructors from the mixin into the mixin application class. This could be
|
|
// observed as an unbound type parameter which led to a crash.
|
|
|
|
class State<T> {}
|
|
|
|
class A {}
|
|
|
|
abstract class Mixin<T> {
|
|
factory Mixin._() => null;
|
|
}
|
|
|
|
class AState extends State<A> {}
|
|
|
|
class AStateImpl extends AState with Mixin {}
|
|
|
|
void main() {
|
|
new AStateImpl();
|
|
}
|