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

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

Issue 1464553003: Move `analyzer_cli` into the SDK. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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
Index: pkg/analyzer_cli/test/data/super_mixin_example.dart
diff --git a/tests/language/call_function_apply_test.dart b/pkg/analyzer_cli/test/data/super_mixin_example.dart
similarity index 51%
copy from tests/language/call_function_apply_test.dart
copy to pkg/analyzer_cli/test/data/super_mixin_example.dart
index 935cfaf832aff599478847534822d651a4ddcd51..ea9048680fdecd48d5d63c715db8599fecb0a2fd 100644
--- a/tests/language/call_function_apply_test.dart
+++ b/pkg/analyzer_cli/test/data/super_mixin_example.dart
@@ -2,14 +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";
+/// This produces errors normally, but --supermixin disables them.
+class Test extends Object with C {
+ void foo() {}
+}
-class A {
- call({a: 42}) {
- return 499 + a;
- }
+abstract class B {
+ void foo();
}
-main() {
- Expect.equals(497, Function.apply(new A(), [], {#a: -2}));
+abstract class C extends B {
+ void bar() {
+ super.foo();
+ }
}

Powered by Google App Engine
This is Rietveld 408576698