1// compile 2 3// Copyright 2017 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. 6 7// Issue 22076: Couldn't use ":=" to declare names that refer to 8// dot-imported symbols. 9 10package p 11 12import . "bytes" 13 14var _ Reader // use "bytes" import 15 16func f1() { 17 Buffer := 0 18 _ = Buffer 19} 20 21func f2() { 22 for Buffer := range []int{} { 23 _ = Buffer 24 } 25} 26