Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: pkg/analysis_server/test/services/completion/local_computer_test.dart

Issue 879093002: Fix mixin resolution order when multiple mixins present. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/test/services/completion/local_computer_test.dart
diff --git a/pkg/analysis_server/test/services/completion/local_computer_test.dart b/pkg/analysis_server/test/services/completion/local_computer_test.dart
index 2a8e86963685d9e884c58f24c4c9590065e68c62..86b54ab84cc5b9c0060a15bcd26c711cfc25ab83 100644
--- a/pkg/analysis_server/test/services/completion/local_computer_test.dart
+++ b/pkg/analysis_server/test/services/completion/local_computer_test.dart
@@ -61,6 +61,27 @@ class LocalComputerTest extends AbstractSelectorSuggestionTest {
isDeprecated: isDeprecated);
}
+ fail_mixin_ordering() {
+ // TODO(paulberry): Duplicates aren't being removed, so we see both M1.m()
+ // and M2.m().
+ addTestSource('''
+class B {}
+class M1 {
+ void m() {}
+}
+class M2 {
+ void m() {}
+}
+class C extends B with M1, M2 {
+ void f() {
+ ^
+ }
+}
+''');
+ expect(computeFast(), isTrue);
+ assertSuggestMethod('m', 'M2', 'void');
+ }
+
@override
void setUpComputer() {
computer = new LocalComputer();
« no previous file with comments | « pkg/analysis_server/test/services/completion/imported_computer_test.dart ('k') | pkg/analyzer/lib/src/generated/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698