mirror of
https://github.com/dart-lang/sdk
synced 2024-09-19 21:01:50 +00:00
2658f495f2
Change-Id: Ic30aef0302e1d2a2812eeb81b414a69e7591f625 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149622 Commit-Queue: Bob Nystrom <rnystrom@google.com> Reviewed-by: Nicholas Shahan <nshahan@google.com>
16 lines
551 B
Dart
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() {} |