2012-02-16 21:49:59 -07:00
|
|
|
// errorcheck
|
2011-07-28 10:31:16 -06:00
|
|
|
|
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// issue 1993.
|
|
|
|
// error used to have last line number in file
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
func bla1() bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func bla5() bool {
|
|
|
|
_ = 1
|
2011-09-20 17:47:17 -06:00
|
|
|
false // ERROR "false not used|value computed is not used"
|
2011-07-28 10:31:16 -06:00
|
|
|
_ = 2
|
2011-09-20 17:47:17 -06:00
|
|
|
return false
|
2011-07-28 10:31:16 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
x := bla1()
|
|
|
|
_ = x
|
|
|
|
}
|