3 // Copyright 2012 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Issue 4323: inlining of functions with local variables
8 // forgets to typecheck the declarations in the inlined copy.
16 type T struct{ C chan []byte }
20 func newReader() *reader { return new(reader) }
22 func (r *reader) Read(n int) ([]byte, error) {
23 req := T{C: make(chan []byte)}