/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue9634.go
18 строк
403 B
Robert Griesemer
[dev.typeparams] test: enable some more errorcheck tests
05 дек 2020, 00:22
05 дек 2020, 00:22
02820d6
Код
Авторство
О чём код?
// 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. // Issue 9634: Structs are incorrectly unpacked when passed as an argument // to append. package main func main() { s := struct{ t []int u int }{} _ = append(s, 0) // ERROR "must be a slice|must be slice|not a slice" }