OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 |
1 class Foo { | 5 class Foo { |
2 method(x, [y, z]) { | 6 method(x, [y, z]) { |
3 return "string"; | 7 return "string"; |
4 } | 8 } |
5 } | 9 } |
6 | 10 |
7 abstract class External { | 11 abstract class External { |
8 String externalMethod(int x, [int y, int z]); | 12 String externalMethod(int x, [int y, int z]); |
9 void listen(Listener listener); | 13 void listen(Listener listener); |
10 } | 14 } |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 44 |
41 extern.listen(new TestListener()); | 45 extern.listen(new TestListener()); |
42 extern.listen(new ExtendedListener()); | 46 extern.listen(new ExtendedListener()); |
43 extern.listen(new InvalidListener()); | 47 extern.listen(new InvalidListener()); |
44 | 48 |
45 var nothing1 = foo.method(); | 49 var nothing1 = foo.method(); |
46 var nothing2 = foo.method(1, 2, 3, 4); | 50 var nothing2 = foo.method(1, 2, 3, 4); |
47 var nothing3 = extern.externalMethod(); | 51 var nothing3 = extern.externalMethod(); |
48 var nothing4 = extern.externalMethod(1, 2, 3, 4); | 52 var nothing4 = extern.externalMethod(1, 2, 3, 4); |
49 } | 53 } |
OLD | NEW |