/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue47928.go
21 строка
386 B
Matthew Dempsky
cmd/compile: change irgen to generate exprs/stmts after decls processed
24 авг 2021, 21:02
24 авг 2021, 21:02
4a9f0ce
Код
Авторство
О чём код?
// run -goexperiment fieldtrack // 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 func main() { var i interface{} = new(T) if _, ok := i.(interface{ Bad() }); ok { panic("FAIL") } } type T struct{ U } type U struct{} //go:nointerface func (*U) Bad() {}