Russ Cox | 57eb06f | 2012-02-16 23:51:04 -0500 | [diff] [blame] | 1 | // errorcheck |
Russ Cox | 9fc6873 | 2011-09-12 15:52:29 -0400 | [diff] [blame] | 2 | |
| 3 | // Copyright 2011 The Go Authors. All rights reserved. |
| 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 main |
| 8 | |
| 9 | func main() { |
| 10 | if true { |
Ian Lance Taylor | d5b7c51 | 2012-01-26 23:06:47 -0800 | [diff] [blame] | 11 | } else ; // ERROR "else must be followed by if or statement block|expected .if. or .{." |
Russ Cox | 9fc6873 | 2011-09-12 15:52:29 -0400 | [diff] [blame] | 12 | } |