blob: 14986e3806af942fb87e470fcc5dad1dfd6ed7e4 [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.
class I<X> {}
mixin M0<T> implements I<T> {}
mixin M1<T> implements I<T> {}
//////////////////////////////////////////////////////
// Inference does not use implements constraints on mixin
///////////////////////////////////////////////////////
// Error since class hierarchy is inconsistent
class A00 extends I<int> with M0<int>, M1 {}
// ^^^
// [analyzer] COMPILE_TIME_ERROR.CONFLICTING_GENERIC_INTERFACES
// [cfe] 'I with M0, M1' can't implement both 'I<int>' and 'I<dynamic>'
void main() {}