| // $G $D/$F.go && $L $F.$A && ./$A.out |
| // Copyright 2009 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. |
| type Reader interface { Read() } |
| // implicit interface conversion in assignment during return |
| func h() (b *Buffer, ok bool) { |
| func i() (r Reader, ok bool) { |
| // implicit interface conversion in multi-assignment during return |
| func fmter() (s string, i int, t string) { |
| return "%#x %q", 100, "hello" |
| s := fmt.Sprintf(fmter()); |
| if s != "0x64 \"hello\"" { |