2012-02-16 21:49:59 -07:00
|
|
|
// errorcheck
|
2011-07-28 10:31:16 -06:00
|
|
|
|
2016-04-10 15:32:26 -06:00
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
2011-07-28 10:31:16 -06:00
|
|
|
// 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
|
2013-02-01 19:13:41 -07:00
|
|
|
false // ERROR "false evaluated but 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
|
|
|
|
}
|