/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/bug350.go
15 строк
412 B
Robert Griesemer
cmd/compile: use "method T.m already declared" for method redeclaration errors
28 сен 2022, 00:59
28 сен 2022, 00:59
7398c3c
Код
Авторство
О чём код?
// errorcheck // 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. package main type T int func (T) m() {} // GCCGO_ERROR "previous" func (T) m() {} // ERROR "T\.m already declared|redefinition" func (*T) p() {} // GCCGO_ERROR "previous" func (*T) p() {} // ERROR "T\.p already declared|redefinition"