Index: tests/language/implicit_closure1_test.dart |
diff --git a/tests/language/implicit_closure1_test.dart b/tests/language/implicit_closure1_test.dart |
index f23ee68324371a03957c84f392e914799bb24020..4a8a4f4c459eedce7e9cca0caed026c0acc0485b 100644 |
--- a/tests/language/implicit_closure1_test.dart |
+++ b/tests/language/implicit_closure1_test.dart |
@@ -6,18 +6,24 @@ |
typedef Handler(bool e); |
class Hello { |
- Hello() {} |
- void handler2(bool e) { print('handler2'); } |
- static void handler1(bool e) { print('handler1'); } |
- void addEventListener(String s, Handler handler, bool status) { |
- handler(status); |
- } |
+ Hello() {} |
+ void handler2(bool e) { |
+ print('handler2'); |
+ } |
- static void main() { |
- final h = new Hello(); |
- h.addEventListener('click', handler1, false); |
- h.addEventListener('click', h.handler2, false); |
- } |
+ static void handler1(bool e) { |
+ print('handler1'); |
+ } |
+ |
+ void addEventListener(String s, Handler handler, bool status) { |
+ handler(status); |
+ } |
+ |
+ static void main() { |
+ final h = new Hello(); |
+ h.addEventListener('click', handler1, false); |
+ h.addEventListener('click', h.handler2, false); |
+ } |
} |
main() { |