Russ Cox | 8080384 | 2012-02-16 23:49:59 -0500 | [diff] [blame] | 1 | // errorcheck |
Russ Cox | f20c2e1 | 2010-07-26 17:34:17 -0700 | [diff] [blame] | 2 | |
Emmanuel Odeke | 53fd522 | 2016-04-10 14:32:26 -0700 | [diff] [blame] | 3 | // Copyright 2010 The Go Authors. All rights reserved. |
Russ Cox | f20c2e1 | 2010-07-26 17:34:17 -0700 | [diff] [blame] | 4 | // Use of this source code is governed by a BSD-style |
| 5 | // license that can be found in the LICENSE file. |
| 6 | |
| 7 | package ddd |
| 8 | |
| 9 | func Sum() int |
Russ Cox | 2f8190a | 2011-07-28 12:31:16 -0400 | [diff] [blame] | 10 | for i := range []int{} { return i } // ERROR "statement outside function|expected" |
Russ Cox | f20c2e1 | 2010-07-26 17:34:17 -0700 | [diff] [blame] | 11 | |