| Index: pkg/analyzer/test/generated/non_error_resolver_test.dart
|
| diff --git a/pkg/analyzer/test/generated/non_error_resolver_test.dart b/pkg/analyzer/test/generated/non_error_resolver_test.dart
|
| index c1da94108bf40ee9de8f229fe5a7250694cbc84e..64da2289159ca36af8e5db0c758b5087a2e624b6 100644
|
| --- a/pkg/analyzer/test/generated/non_error_resolver_test.dart
|
| +++ b/pkg/analyzer/test/generated/non_error_resolver_test.dart
|
| @@ -6,6 +6,7 @@ library engine.non_error_resolver_test;
|
|
|
| import 'package:analyzer/src/generated/ast.dart';
|
| import 'package:analyzer/src/generated/element.dart';
|
| +import 'package:analyzer/src/generated/engine.dart';
|
| import 'package:analyzer/src/generated/error.dart';
|
| import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode;
|
| import 'package:analyzer/src/generated/source_io.dart';
|
| @@ -3139,6 +3140,19 @@ class B extends Object with A {}''');
|
| verify([source]);
|
| }
|
|
|
| + void test_mixinInheritsFromNotObject_classDeclaration_extends() {
|
| + AnalysisOptionsImpl options = new AnalysisOptionsImpl();
|
| + options.enableSuperMixins = true;
|
| + resetWithOptions(options);
|
| + Source source = addSource(r'''
|
| +class A {}
|
| +class B extends A {}
|
| +class C extends Object with B {}''');
|
| + computeLibrarySourceErrors(source);
|
| + assertNoErrors(source);
|
| + verify([source]);
|
| + }
|
| +
|
| void test_mixinInheritsFromNotObject_classDeclaration_mixTypeAlias() {
|
| Source source = addSource(r'''
|
| class A {}
|
| @@ -3149,6 +3163,45 @@ class C extends Object with B {}''');
|
| verify([source]);
|
| }
|
|
|
| + void test_mixinInheritsFromNotObject_classDeclaration_with() {
|
| + AnalysisOptionsImpl options = new AnalysisOptionsImpl();
|
| + options.enableSuperMixins = true;
|
| + resetWithOptions(options);
|
| + Source source = addSource(r'''
|
| +class A {}
|
| +class B extends Object with A {}
|
| +class C extends Object with B {}''');
|
| + computeLibrarySourceErrors(source);
|
| + assertNoErrors(source);
|
| + verify([source]);
|
| + }
|
| +
|
| + void test_mixinInheritsFromNotObject_typeAlias_extends() {
|
| + AnalysisOptionsImpl options = new AnalysisOptionsImpl();
|
| + options.enableSuperMixins = true;
|
| + resetWithOptions(options);
|
| + Source source = addSource(r'''
|
| +class A {}
|
| +class B extends A {}
|
| +class C = Object with B;''');
|
| + computeLibrarySourceErrors(source);
|
| + assertNoErrors(source);
|
| + verify([source]);
|
| + }
|
| +
|
| + void test_mixinInheritsFromNotObject_typeAlias_with() {
|
| + AnalysisOptionsImpl options = new AnalysisOptionsImpl();
|
| + options.enableSuperMixins = true;
|
| + resetWithOptions(options);
|
| + Source source = addSource(r'''
|
| +class A {}
|
| +class B extends Object with A {}
|
| +class C = Object with B;''');
|
| + computeLibrarySourceErrors(source);
|
| + assertNoErrors(source);
|
| + verify([source]);
|
| + }
|
| +
|
| void test_mixinInheritsFromNotObject_typedef_mixTypeAlias() {
|
| Source source = addSource(r'''
|
| class A {}
|
| @@ -3159,6 +3212,20 @@ class C = Object with B;''');
|
| verify([source]);
|
| }
|
|
|
| + void test_mixinReferencesSuper() {
|
| + AnalysisOptionsImpl options = new AnalysisOptionsImpl();
|
| + options.enableSuperMixins = true;
|
| + resetWithOptions(options);
|
| + Source source = addSource(r'''
|
| +class A {
|
| + toString() => super.toString();
|
| +}
|
| +class B extends Object with A {}''');
|
| + computeLibrarySourceErrors(source);
|
| + assertNoErrors(source);
|
| + verify([source]);
|
| + }
|
| +
|
| void test_multipleSuperInitializers_no() {
|
| Source source = addSource(r'''
|
| class A {}
|
|
|