/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue29304.go
19 строк
404 B
Robert Griesemer
cmd/compile: generate interface method expression wrapper for error.Error
17 дек 2018, 22:48
17 дек 2018, 22:48
a1aafd8
Код
Авторство
О чём код?
// run // Copyright 2018 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. // Verify that relocation target go.builtin.error.Error // is defined and the code links and runs correctly. package main import "errors" func main() { err := errors.New("foo") if error.Error(err) != "foo" { panic("FAILED") } }