Index: tests/language/void_type_test.dart |
diff --git a/tests/language/void_type_test.dart b/tests/language/void_type_test.dart |
index 92ccd4d6c019d99046a3b4be5f6d528888170fb2..faf8b3f2ff31c71268f3d34d1f49da84a9648d0b 100644 |
--- a/tests/language/void_type_test.dart |
+++ b/tests/language/void_type_test.dart |
@@ -15,11 +15,17 @@ isCheckedMode() { |
} |
} |
-void f() { return; } |
+void f() { |
+ return; |
+} |
-void f_null() { return null; } |
+void f_null() { |
+ return null; |
+} |
-void f_1() { return 1; } |
+void f_1() { |
+ return 1; |
+} |
void f_dyn_null() { |
var x = null; |
@@ -31,7 +37,9 @@ void f_dyn_1() { |
return x; |
} |
-void f_f() { return f(); } |
+void f_f() { |
+ return f(); |
+} |
void test(int n, void func(), bool must_get_error) { |
// Test as closure call. |
@@ -55,12 +63,24 @@ void test(int n, void func(), bool must_get_error) { |
try { |
var x; |
switch (n) { |
- case 0: x = f(); break; |
- case 1: x = f_null(); break; |
- case 2: x = f_1(); break; |
- case 3: x = f_dyn_null(); break; |
- case 4: x = f_dyn_1(); break; |
- case 5: x = f_f(); break; |
+ case 0: |
+ x = f(); |
+ break; |
+ case 1: |
+ x = f_null(); |
+ break; |
+ case 2: |
+ x = f_1(); |
+ break; |
+ case 3: |
+ x = f_dyn_null(); |
+ break; |
+ case 4: |
+ x = f_dyn_1(); |
+ break; |
+ case 5: |
+ x = f_f(); |
+ break; |
} |
} on TypeError catch (error) { |
got_type_error = true; |
@@ -82,5 +102,3 @@ main() { |
test(4, f_dyn_1, true); |
test(5, f_f, false); |
} |
- |
- |