Source file test/fixedbugs/issue35739.dir/a.go
1 // Copyright 2020 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 a 6 7 type myError string 8 9 func (e myError) Error() string { return string(e) } 10 11 const myErrorVal myError = "error" 12 13 func IsMyError(err error) bool { 14 return err == error(myErrorVal) 15 } 16