Daniel Morsing | 48af64b | 2012-10-22 19:14:30 +0200 | [diff] [blame] | 1 | // errorcheck |
| 2 | |
Emmanuel Odeke | 53fd522 | 2016-04-10 14:32:26 -0700 | [diff] [blame] | 3 | // Copyright 2012 The Go Authors. All rights reserved. |
Daniel Morsing | 48af64b | 2012-10-22 19:14:30 +0200 | [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 foo |
| 8 | |
| 9 | var s [][10]int |
Rémy Oudompheng | 004dd3d7 | 2013-06-20 08:21:14 +0200 | [diff] [blame] | 10 | const m = len(s[len(s)-1]) // ERROR "is not a constant|is not constant" |
Daniel Morsing | 48af64b | 2012-10-22 19:14:30 +0200 | [diff] [blame] | 11 | |