blob: c8c008c86e89cc8d9d397b5746afae9c222082df [file] [log] [blame]
// 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.
// @dart=2.19
// 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._() => throw "uncalled";
}
class AState extends State<A> {}
class AStateImpl extends AState with Mixin {}
void main() {
new AStateImpl();
}