/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/mainsig.go
13 строк
598 B
Russ Cox
[dev.regabi] cmd/compile: cleanup for concrete types - noder
17 дек 2020, 07:43
17 дек 2020, 07:43
be64c8b
Код
Авторство
О чём код?
// errorcheck // Copyright 2020 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 main func main(int) {} // ERROR "func main must have no arguments and no return values" func main() int { return 1 } // ERROR "func main must have no arguments and no return values" "main redeclared in this block" func init(int) {} // ERROR "func init must have no arguments and no return values" func init() int { return 1 } // ERROR "func init must have no arguments and no return values"