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

Side by Side Diff: tests/language/super_call4_test.dart

Issue 11339042: Revert "Change signature of noSuchMethod to take an InvocationMirror." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/language/overridden_no_such_method.dart ('k') | tests/utils/dummy_compiler_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Checks that noSuchMethod is resolved in the super class and not in the 5 // Checks that noSuchMethod is resolved in the super class and not in the
6 // current class. 6 // current class.
7 7
8 class C { 8 class C {
9 bool noSuchMethod(InvocationMirror im) { 9 // bool noSuchMethod(InvocationMirror im) { // Issue 3622
10 bool noSuchMethod(String function_name, List args) {
10 return true; 11 return true;
11 } 12 }
12 } 13 }
13 14
14 class D extends C { 15 class D extends C {
15 bool noSuchMethod(InvocationMirror im) { 16 // bool noSuchMethod(InvocationMirror im) { // Issue 3622
17 bool noSuchMethod(String function_name, List args) {
16 return false; 18 return false;
17 } 19 }
18 test() { 20 test() {
19 return super.foo(); 21 return super.foo();
20 } 22 }
21 } 23 }
22 24
23 main() { 25 main() {
24 var d = new D(); 26 var d = new D();
25 Expect.isTrue(d.test()); 27 Expect.isTrue(d.test());
26 } 28 }
OLDNEW
« no previous file with comments | « tests/language/overridden_no_such_method.dart ('k') | tests/utils/dummy_compiler_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698