Debian Codegraph @

gopls/internal/analysis/nonewvars/testdata/src/a/a.go.golden

raw
1 // Copyright 2020 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package nonewvars
6
7 import "log"
8
9 func x() {
10 z := 1
11 z = 2 // want "no new variables on left side of :="
12
13 _, z = 3, 100 // want "no new variables on left side of :="
14
15 log.Println(z)
16 }