Closed
Description
Given a file a.dart
containing
class A {
void _foo() {}
}
class B {
void _foo() {}
}
and another file containing
import 'a.dart';
class C extends Object with A, B {}
the analyzer produces the following expected diagnostic
error: The private name '_foo', defined by 'B', conflicts with the same name defined by 'A'. (private_collision_in_mixin_application)
But if the extends clause is removed:
import 'a.dart';
class C extends Object with A, B {}
then the diagnostic is not reported.
Is this a bug in the analyzer, or is this expected behavior?