dart-sdk/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_00_test.dart
Leaf Petersen d4148159cc Initial valid inference checks
Change-Id: I75c3f3a4072aeaa6f27d399196ba3c57e79fecbb
Reviewed-on: https://dart-review.googlesource.com/74017
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2018-09-18 19:59:26 +00:00

16 lines
551 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.
class I<X> {}
mixin M0<T> on I<T> {}
///////////////////////////////////////////////////////
// Inference happens from superclasses to subclasses
///////////////////////////////////////////////////////
// Error since class hierarchy is inconsistent
class A00 extends I with M0<int> {} /*@compile-error=unspecified*/
void main() {}