/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue45258.go
28 строк
397 B
Matthew Dempsky
[dev.typeparams] test: rename blank functions
29 июл 2021, 00:41
29 июл 2021, 00:41
adedf54
Код
Авторство
О чём код?
// compile // Copyright 2021 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 type Fooer interface { Foo() Barer } type Barer interface { Bar() } type impl struct{} func (r *impl) Foo() Barer { return r } func (r *impl) Bar() {} func f1() { var r Fooer = &impl{} r.Foo().Bar() }