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

Unified Diff: tests/corelib/method_override_test.dart

Issue 18652002: Revert "Relax method override restrictions." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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
« no previous file with comments | « tests/corelib/method_override4_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/method_override_test.dart
diff --git a/tests/corelib/method_override_test.dart b/tests/corelib/method_override_test.dart
deleted file mode 100644
index d5709c3784117daa7d80f6c3a85f0817ef661421..0000000000000000000000000000000000000000
--- a/tests/corelib/method_override_test.dart
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// 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';
-
-class A {
- foo(required1, { named1: 499}) => -(required1 + named1 * 3);
- bar(required1, required2, { named1: 13, named2: 17})
- => -(required1 + required2 * 3 + named1 * 5 + named2 * 7);
- gee({named1: 31}) => -named1;
-}
-
-class B extends A {
- foo(required1) => required1;
- bar(required1, required2, { named1: 29 })
- => required1 + required2 * 3 + named1 * 5;
- gee({named2: 11}) => named2 * 99;
-}
-
-main() {
- var b = new B();
- Expect.equals(499, b.foo(499));
- Expect.equals(1 + 3 * 3 + 5 * 5, b.bar(1, 3, named1: 5));
- Expect.equals(1 + 3 * 3 + 29 * 5, b.bar(1, 3));
- Expect.equals(3 * 99, b.gee(named2: 3));
- Expect.equals(11 * 99, b.gee());
-}
« no previous file with comments | « tests/corelib/method_override4_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698