/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue26855.go
28 строк
479 B
Ian Lance Taylor
test: recognize gofrontend error messages
15 дек 2020, 05:35
15 дек 2020, 05:35
5a25a3f
Код
Авторство
О чём код?
// 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. // Verify that we get the correct (T vs &T) literal specification // in the error message. package p type S struct { f T } type P struct { f *T } type T struct{} var _ = S{ f: &T{}, // ERROR "cannot use &T{}|incompatible type" } var _ = P{ f: T{}, // ERROR "cannot use T{}|incompatible type" }