| Index: pkg/analyzer/test/src/dart/element/element_test.dart
|
| diff --git a/pkg/analyzer/test/src/dart/element/element_test.dart b/pkg/analyzer/test/src/dart/element/element_test.dart
|
| index b93ba35a0d59bfe3751af6b05a862c3a27d47730..17f71cceccbc9fb38e6ed1a50574fde68cdae879 100644
|
| --- a/pkg/analyzer/test/src/dart/element/element_test.dart
|
| +++ b/pkg/analyzer/test/src/dart/element/element_test.dart
|
| @@ -120,6 +120,24 @@ abstract class A<K, V> = Object with MapMixin<K, V>;
|
| }
|
| }
|
|
|
| + void test_constructors_mixinApplicationWithHandle() {
|
| + AnalysisContext context = createAnalysisContext();
|
| + context.sourceFactory = new SourceFactory([]);
|
| +
|
| + ElementLocation location = new ElementLocationImpl.con2('');
|
| + ClassElementImpl classA = ElementFactory.classElement2("A");
|
| + classA.mixinApplication = true;
|
| + TestElementResynthesizer resynthesizer =
|
| + new TestElementResynthesizer(context, {location: classA});
|
| + ClassElementHandle classAHandle =
|
| + new ClassElementHandle(resynthesizer, location);
|
| + ClassElementImpl classB =
|
| + ElementFactory.classElement("B", new InterfaceTypeImpl(classAHandle));
|
| + classB.mixinApplication = true;
|
| +
|
| + expect(classB.constructors, hasLength(1));
|
| + }
|
| +
|
| void test_getAllSupertypes_interface() {
|
| ClassElement classA = ElementFactory.classElement2("A");
|
| ClassElement classB = ElementFactory.classElement("B", classA.type);
|
|
|