/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue6572.go
22 строки
452 B
Dan Scales
cmd/compile: match Go 1.17 compiler error messages more closely
13 ноя 2021, 02:07
13 ноя 2021, 02:07
c8d6ee1
Код
Авторство
О чём код?
// errorcheck // Copyright 2014 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 func foo() (T, T) { // ERROR "undefined" return 0, 0 } func bar() (T, string, T) { // ERROR "undefined" return 0, "", 0 } func main() { var x, y, z int x, y = foo() x, y, z = bar() // ERROR "cannot (use type|assign|use.*type) string|" _, _, _ = x, y, z }