summaryrefslogtreecommitdiffstats
path: root/src/go/parser/testdata/resolution/issue45136.src
blob: e1d63d837703c2e96c55c3fc6f16bbf3b8501bbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2021 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 issue45136

type obj /* =@obj */ struct {
	name /*=@name */ string
}

func _() {
	var foo /* =@foo */ = "foo"
	obj /* @obj */ ["foo"]
	obj /* @obj */ .run()
	obj /* @obj */ {
		name: foo /* @foo */,
	}
	obj /* @obj */ {
		name: "bar",
	}.run()

	var _ = File{key: obj /* @obj */ {}}
	var _ = File{obj /* @obj */ {}}

	[]obj /* @obj */ {foo /* @foo */}
	x /* =@x1 */ := obj /* @obj */{}
}