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

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

Issue 11231074: Change signature of noSuchMethod to take an InvocationMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: One more test expectation 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) { // Issue 3622 9 bool noSuchMethod(InvocationMirror im) {
10 bool noSuchMethod(String function_name, List args) {
11 return true; 10 return true;
12 } 11 }
13 } 12 }
14 13
15 class D extends C { 14 class D extends C {
16 // bool noSuchMethod(InvocationMirror im) { // Issue 3622 15 bool noSuchMethod(InvocationMirror im) {
17 bool noSuchMethod(String function_name, List args) {
18 return false; 16 return false;
19 } 17 }
20 test() { 18 test() {
21 return super.foo(); 19 return super.foo();
22 } 20 }
23 } 21 }
24 22
25 main() { 23 main() {
26 var d = new D(); 24 var d = new D();
27 Expect.isTrue(d.test()); 25 Expect.isTrue(d.test());
28 } 26 }
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