/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/bug358.go
26 строк
601 B
Cuong Manh Le
cmd/compile: make check2 gracefully exit if it reported errors
04 мар 2021, 09:36
04 мар 2021, 09:36
868a110
Код
Авторство
О чём код?
// errorcheck -d=panic // Copyright 2011 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. // issue 1979 // used to get internal compiler error too package main import ( // avoid imported and not used errors // "io/ioutil" "net/http" // "os" ) func makeHandler(fn func(http.ResponseWriter, *http.Request, string)) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) // ERROR "syntax error|not an expression|invalid use of type" } type Page struct { Title string Body []byte }