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

Side by Side Diff: frog/tests/leg_only/src/SuperCallTest.dart

Issue 9166010: Implement super calls. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 class A {
2 foo() => "A.foo" + baz();
3 baz() => "A.baz";
4 hest(String s, int i) => s + i;
5 }
6
7 class B extends A {
8 foo() => "B.foo" + super.foo();
9 baz() => "B.baz";
10 hest(s, i) => "B.hest" + super.hest(s, i);
11 }
12
13 main() {
14 B b = new B();
15 Expect.equals("B.fooA.fooB.baz", b.foo());
16 Expect.equals("B.hestfisk42", b.hest('fisk', 42));
17 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698