Source file test/fixedbugs/bug305.go

     1  // errorcheck
     2  
     3  // Copyright 2010 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  // Use //line to set the line number of the next line to 20.
     8  //line fixedbugs/bug305.go:20
     9  
    10  package p
    11  
    12  // Introduce an error which should be reported on line 24.
    13  var a int = "bogus"
    14  
    15  // Line 15 of file.
    16  // 16
    17  // 17
    18  // 18
    19  // 19
    20  // 20
    21  // 21
    22  // 22
    23  // 23
    24  // ERROR "cannot|incompatible"
    25  

View as plain text