/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/bug418.go
22 строки
557 B
Robert Griesemer
[dev.typeparams] test: finish triaging all outstanding failing tests
15 дек 2020, 00:28
15 дек 2020, 00:28
5aca6e7
Код
Авторство
О чём код?
// 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. // Issue 3044. // Multiple valued expressions in return lists. package p func Two() (a, b int) // F used to compile. func F() (x interface{}, y int) { return Two(), 0 // ERROR "single-value context|2\-valued" } // Recursive used to trigger an internal compiler error. func Recursive() (x interface{}, y int) { return Recursive(), 0 // ERROR "single-value context|2\-valued" }