/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/bug505.go
20 строк
401 B
Ian Lance Taylor
test: add type alias test that caused gccgo to crash
27 окт 2017, 01:52
27 окт 2017, 01:52
6222997
Код
Авторство
О чём код?
// compile // Copyright 2017 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. // gccgo crashed compiling this file with a failed conversion to the // alias type when constructing the composite literal. package p type I interface{ M() } type A = I type S struct { f A } func F(i I) S { return S{f: i} }