Source file src/cmd/vet/testdata/method/method.go

     1  // Copyright 2010 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // This file contains the code to check canonical methods.
     6  
     7  package method
     8  
     9  import "fmt"
    10  
    11  type MethodTest int
    12  
    13  func (t *MethodTest) Scan(x fmt.ScanState, c byte) { // ERROR "should have signature Scan\(fmt\.ScanState, rune\) error"
    14  }
    15  

View as plain text