Source file test/fixedbugs/issue4663.go

     1  // errorcheck
     2  
     3  // Copyright 2013 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  // Issue 4663.
     8  // Make sure 'not used' message is placed correctly.
     9  
    10  package main
    11  
    12  func a(b int) int64 {
    13    b // ERROR "not used"
    14    return 0
    15  }
    16  

View as plain text