4 fail_compilation/fail6889.d(16): Error: cannot `goto` out of `scope(success)` block
5 fail_compilation/fail6889.d(17): Error: cannot `goto` in to `scope(success)` block
6 fail_compilation/fail6889.d(19): Error: `return` statements cannot be in `scope(success)` bodies
7 fail_compilation/fail6889.d(23): Error: `continue` is not allowed inside `scope(success)` bodies
8 fail_compilation/fail6889.d(24): Error: `break` is not allowed inside `scope(success)` bodies
9 fail_compilation/fail6889.d(29): Error: `continue` is not allowed inside `scope(success)` bodies
10 fail_compilation/fail6889.d(30): Error: `break` is not allowed inside `scope(success)` bodies
16 scope(success
) { L2
: goto L1
; } // NG
19 scope(success
) { return; } // NG (from fail102.d)
23 scope(success
) continue; // NG
24 scope(success
) break; // NG
29 scope(success
) continue; // NG
30 scope(success
) break; // NG
33 // is equivalent with:
35 Aggr().opApply((int i){
36 scope(success) return 0; // NG
37 scope(success) return 1; // NG
49 fail_compilation/fail6889.d(56): Error: cannot `goto` in to `scope(failure)` block
55 scope(failure
) { L2
: goto L1
; } // OK
62 scope(failure
) continue; // OK
63 scope(failure
) break; // OK
68 scope(failure
) continue; // OK
69 scope(failure
) break; // OK
72 // is equivalent with:
74 Aggr().opApply((int i){
75 scope(failure) return 0; // OK
76 scope(failure) return 1; // OK
88 fail_compilation/fail6889.d(100): Error: cannot `goto` out of `scope(exit)` block
89 fail_compilation/fail6889.d(101): Error: cannot `goto` in to `scope(exit)` block
90 fail_compilation/fail6889.d(103): Error: `return` statements cannot be in `scope(exit)` bodies
91 fail_compilation/fail6889.d(107): Error: `continue` is not allowed inside `scope(exit)` bodies
92 fail_compilation/fail6889.d(108): Error: `break` is not allowed inside `scope(exit)` bodies
93 fail_compilation/fail6889.d(113): Error: `continue` is not allowed inside `scope(exit)` bodies
94 fail_compilation/fail6889.d(114): Error: `break` is not allowed inside `scope(exit)` bodies
100 scope(exit
) { L2
: goto L1
; } // NG
103 scope(exit
) { return; } // NG (from fail102.d)
107 scope(exit
) continue; // NG
108 scope(exit
) break; // NG
113 scope(exit
) continue; // NG
114 scope(exit
) break; // NG
117 // is equivalent with:
119 Aggr().opApply((int i){
120 scope(exit) return 0; // NG
121 scope(exit) return 1; // NG
130 struct Aggr
{ int opApply(int delegate(int) dg
) { return dg(0); } }