/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue24339.go
20 строк
416 B
Robert Griesemer
go/types, types2: use "unknown field f in struct literal of type S" in error messages
28 сен 2022, 00:59
28 сен 2022, 00:59
b16501c
Код
Авторство
О чём код?
// errorcheck // Copyright 2018 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 p // Use a different line number for each token so we can // check that the error message appears at the correct // position. var _ = struct{}{ /*line :20:1*/foo /*line :21:1*/: /*line :22:1*/0 } // ERROR "unknown field foo"