1// Copyright 2016 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// Package predeclared is a go/doc test for handling of 6// exported methods on locally-defined predeclared types. 7// See issue 9860. 8package predeclared 9 10type error struct{} 11 12// Must not be visible. 13func (e error) Error() string { 14 return "" 15} 16 17type bool int 18 19// Must not be visible. 20func (b bool) String() string { 21 return "" 22} 23