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

Unified Diff: pkg/analyzer_cli/test/data/super_mixin_example.dart

Issue 1459683003: `analyzer_cli` move to SDK. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: master merge Created 5 years, 1 month 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
« no previous file with comments | « pkg/analyzer_cli/test/data/strong_example.dart ('k') | pkg/analyzer_cli/test/data/test_file.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_cli/test/data/super_mixin_example.dart
diff --git a/tests/language/issue13179_test.dart b/pkg/analyzer_cli/test/data/super_mixin_example.dart
similarity index 51%
copy from tests/language/issue13179_test.dart
copy to pkg/analyzer_cli/test/data/super_mixin_example.dart
index 0439ceab895f5925234763b90cb323007bc19b14..ea9048680fdecd48d5d63c715db8599fecb0a2fd 100644
--- a/tests/language/issue13179_test.dart
+++ b/pkg/analyzer_cli/test/data/super_mixin_example.dart
@@ -2,18 +2,17 @@
// 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.
-import "package:expect/expect.dart";
-
-int count = 0;
+/// This produces errors normally, but --supermixin disables them.
+class Test extends Object with C {
+ void foo() {}
+}
-void f([void f([x]) = f]) {
- count++;
- if (f != null) {
- f(null);
- }
+abstract class B {
+ void foo();
}
-main() {
- f();
- Expect.equals(2, count);
+abstract class C extends B {
+ void bar() {
+ super.foo();
+ }
}
« no previous file with comments | « pkg/analyzer_cli/test/data/strong_example.dart ('k') | pkg/analyzer_cli/test/data/test_file.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698