OLD | NEW |
---|---|
1 class A { | 1 class A { |
2 foo() => "A.foo${baz()}"; | 2 foo() => "A.foo${baz()}"; |
3 baz() => "A.baz"; | 3 baz() => "A.baz"; |
4 hest(String s, int i) => "$s$i"; | 4 hest(String s, int i) => "$s$i"; |
5 } | 5 } |
6 | 6 |
7 import "package:expect/expect.dart"; | |
Bill Hesse
2013/03/10 16:19:56
This needs to be moved up.
floitsch
2013/03/14 12:50:56
ah... The search/replace failed, because it didn't
| |
8 | |
7 class B extends A { | 9 class B extends A { |
8 foo() => "B.foo${super.foo()}"; | 10 foo() => "B.foo${super.foo()}"; |
9 baz() => "B.baz"; | 11 baz() => "B.baz"; |
10 hest(s, i) => "B.hest${super.hest(s, i)}"; | 12 hest(s, i) => "B.hest${super.hest(s, i)}"; |
11 } | 13 } |
12 | 14 |
13 main() { | 15 main() { |
14 B b = new B(); | 16 B b = new B(); |
15 Expect.equals("B.fooA.fooB.baz", b.foo()); | 17 Expect.equals("B.fooA.fooB.baz", b.foo()); |
16 Expect.equals("B.hestfisk42", b.hest('fisk', 42)); | 18 Expect.equals("B.hestfisk42", b.hest('fisk', 42)); |
17 } | 19 } |
OLD | NEW |