/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/bug367.dir/prog.go
28 строк
424 B
Rémy Oudompheng
test: use rundir and errorcheckdir for a few more tests.
07 окт 2012, 20:37
07 окт 2012, 20:37
d9953c9
Код
Авторство
О чём код?
// Copyright 2011 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 import ( "./p" ) type T struct{ *p.S } type I interface { get() } func main() { var t T p.F(t) var x interface{} = t _, ok := x.(I) if ok { panic("should not satisfy main.I") } _, ok = x.(p.I) if !ok { panic("should satisfy p.I") } }