46 lines
717 B
Go
46 lines
717 B
Go
|
// Copyright 2016 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.
|
||
|
|
||
|
// package ignore tests that exported, but otherwise
|
||
|
// unsupported functions, variables, fields and methods
|
||
|
// are ignored by the generators
|
||
|
package ignore
|
||
|
|
||
|
var Var interface{}
|
||
|
|
||
|
type (
|
||
|
NamedString string
|
||
|
)
|
||
|
|
||
|
const NamedConst NamedString = "foo"
|
||
|
|
||
|
var V interface{}
|
||
|
|
||
|
func Argument(_ interface{}) {
|
||
|
}
|
||
|
|
||
|
func Result() interface{} {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type S struct {
|
||
|
F interface{}
|
||
|
}
|
||
|
|
||
|
type (
|
||
|
F func()
|
||
|
)
|
||
|
|
||
|
func (_ *S) Argument(_ interface{}) {
|
||
|
}
|
||
|
|
||
|
func (_ *S) Result() interface{} {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type I interface {
|
||
|
Argument(_ interface{})
|
||
|
Result() interface{}
|
||
|
}
|