Index: test/whitespace/blocks.stmt |
diff --git a/test/whitespace/blocks.stmt b/test/whitespace/blocks.stmt |
index 8091a699c19d39aa1b350f72c6ea1f7af30f440b..5ebaffd371679d846501d79107ffa778862c3221 100644 |
--- a/test/whitespace/blocks.stmt |
+++ b/test/whitespace/blocks.stmt |
@@ -54,4 +54,44 @@ |
var a; |
; |
; |
+} |
+>>> force blank line after non-empty local function |
+{ |
+ a() {;} |
+ b(); |
+ |
+ |
+ c() {;}d(){;} |
+ |
+ |
+} |
+<<< |
+{ |
+ a() { |
+ ; |
+ } |
+ |
+ b(); |
+ |
+ c() { |
+ ; |
+ } |
+ |
+ d() { |
+ ; |
+ } |
+} |
+>>> do not force blank line after empty local function |
+{ a() {} b() {} } |
+<<< |
+{ |
+ a() {} |
+ b() {} |
+} |
+>>> do not force blank line after => body local function |
+{ a() => null; b() => null; } |
+<<< |
+{ |
+ a() => null; |
+ b() => null; |
} |