summaryrefslogtreecommitdiff
path: root/src/cmd/vet/test_method.go
blob: 41de62bb1d357be9b3126dce112a070793340d59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2010 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.

// This file contains tests for the canonical method checker.

// +build vet_test

// This file contains the code to check canonical methods.

package main

import (
	"fmt"
)

type MethodTest int

func (t *MethodTest) Scan(x fmt.ScanState, c byte) { // ERROR "should have signature Scan"
}

type MethodTestInterface interface {
	ReadByte() byte // ERROR "should have signature ReadByte"
}