dart-sdk/tests/language_2/regress_32267_test.dart
Kevin Millikin ffc5a96074 Reland "Fix a bug in Kernel's mixin elimination"
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>
2018-02-22 11:52:24 +00:00

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();
}