/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue15084.go
30 строк
395 B
Josh Bleecher Snyder
test: add test for issue 15084
25 апр 2016, 22:20
25 апр 2016, 22:20
9dcbc43
Код
Авторство
О чём код?
// compile // Copyright 2016 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 x type T struct { i int e interface{} } func (t *T) F() bool { if t.i != 0 { return false } _, ok := t.e.(string) return ok } var x int func g(t *T) { if t.F() || true { if t.F() { x = 0 } } }