blob: 97d8fcde1274522901e87065b0177d4838ae655b [file] [log] [blame]
// Copyright 2020 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 nonewvars
import "log"
func x() {
z := 1
z := 2 // want "no new variables on left side of :="
_, z := 3, 100 // want "no new variables on left side of :="
log.Println(z)
}