/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
go1.26.2
test/initloop.go
17 строк
408 B
Max Neverov
go/types: improve recursive type error message
23 окт 2024, 01:20
23 окт 2024, 01:20
bdc6dbb
Код
Авторство
О чём код?
// errorcheck // Copyright 2015 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 initialization loops are caught // and that the errors print correctly. package main var ( x int = a a int = b // ERROR "a refers to b\n.*b refers to c\n.*c refers to a|initialization loop" b int = c c int = a )