/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue4610.go
16 строк
334 B
Alan Donovan
go/types,cmd/compile/internal/types2: better diagnostic for type shadowing
16 янв 2026, 02:10
16 янв 2026, 02:10
532e320
Код
Авторство
О чём код?
// errorcheck // Copyright 2012 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 bar struct { x int } func main() { var foo bar _ = &foo{} // ERROR "is not a type|expected .;." } // GCCGO_ERROR "expected declaration"