/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue22921.go
18 строк
467 B
Cuong Manh Le
cmd/compile: don't expand invalid embedded interface
05 мар 2021, 21:46
05 мар 2021, 21:46
80098ef
Код
Авторство
О чём код?
// errorcheck -d=panic // 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 import "bytes" type _ struct{ bytes.nonexist } // ERROR "unexported|undefined" type _ interface{ bytes.nonexist } // ERROR "unexported|undefined|expected signature or type name" func main() { var _ bytes.Buffer var _ bytes.buffer // ERROR "unexported|undefined" }