dangling_operator.go (1895B)
1 package main 2 3 func init() { 4 a := 5 123 6 7 print(123, 8 456, 9 789, 10 ) 11 12 c := 13 "foo" 14 15 d := // meh 16 123 17 18 e := /* meh 19 another meh 20 */ 21 123 22 23 println(123, /* foo 24 bar */ 25 456, 26 ) 27 28 1 || 29 1 || print(1, 30 2, 31 ) 32 33 1 || 34 1 && print(1, 35 2, 36 ) 37 38 f := 39 print(1, 40 2, 41 ) 42 43 1 + 44 foo( 45 1) + 46 foo 47 48 1 + 49 (1 + 50 1) + (1 + 51 1) 52 53 1 + 54 1 + foo( 55 1, 56 ) 57 58 foo( 59 1 && foo( 60 1, 61 ), 62 ) 63 64 g := 65 int64(4 * 66 3 * 67 1) 68 69 i := 70 "" != "" || 71 true == false || 72 false == false 73 74 a, b := 75 1, 76 2 77 78 a, 79 b := 1, 2 80 81 { 82 a, b := 1, 83 2 84 } 85 86 1 + foo( 87 3, 88 ) 89 90 foo && 91 foo && (foo && 92 foo) 93 94 foo(1 + 95 3 + 96 4, 97 ) 98 99 1 + 100 1 101 102 1 + 103 (1 + 104 1) 105 106 1 + (1 + 107 1) 108 109 1 + (1 + 110 1) + 111 1 112 113 1 + (1 + 114 1) + (1 + 115 1) 116 117 1 + 118 ((1 + 119 1) + 1) + (1 + 120 1) 121 122 1 + 123 ((1 + 124 1) + 125 1) + (1 + 126 1) 127 128 1 + 129 ((1 + 130 1) + 131 1) + (1 + 132 1) 133 134 1 + 135 (1 + (1 + 136 1) + (1 + 137 1)) 138 139 1 + 140 ((1 + 141 1) + 142 1) 143 144 1 + (1 + 1) + 145 (1 + 146 1) 147 148 1 + 149 1 + (1 + 150 1) 151 152 1 + 153 1 + 154 1 + (1 + 155 1) 156 157 1 + 158 (1 + foo(1+ 159 1)) 160 161 (1 && 162 (2 && 163 (3 && 164 4))) && 165 5 166 167 Foo{1 + 168 2, 169 3, 170 } 171 172 1 + (1 + 173 (1 + (1 + 174 1))) 175 176 1 + (1 + (1 + (1 + 177 1) + 178 1) + 179 1) 180 181 1 + 182 1 + Foo{1 + 183 1} 184 185 1 + 186 FOo{ 187 1, 188 } 189 190 // foo ends the dangle, -indent 191 1 + 192 1 + foo( 193 1, 194 ) 195 196 1 + 197 foo( 198 1, 199 ) 200 201 1 + 202 (1 + 203 1) 204 205 1 + 206 1 + (1 + 207 1) 208 209 1 + 210 1 + 1 + 211 1 212 213 1 + 214 (2 + 215 (3 + 4)) + foo( 216 1, 217 ) 218 219 1 + 220 (1 + foo( 221 1, 222 )) 223 224 1 + 225 (2 + 226 (3 + 4)) + 227 1 228 229 1 + 230 (2 + 231 3) + foo( 232 1, 233 2) + 234 foo 235 236 foo && 237 (foo && (bar && baz) && 238 qux) && 239 hi 240 241 foo(1, 242 bar( 243 1, 244 foo(2, 245 1))) + 246 foo 247 248 foo && 249 f(bar && (foo && 250 baz)) && 251 qux 252 253 foo(1+`, 254 lol`+ 255 123, 256 456) 257 258 "hi" + `, 259 lol` + 260 "there" 261 262 foo /* hi */ 263 bar 264 265 1 + // hi 266 2 + 267 3 268 269 1 + /* hi */ 270 2 + 271 3 272 273 foo || 274 foo && 275 foo( 276 123, 277 ) 278 279 foo || 280 foo && 281 foo{ 282 { 283 foo: bar, 284 }, 285 } 286 287 foo. 288 bar. 289 baz. 290 qux 291 292 return 123, 293 456 294 }