Text file src/go/parser/testdata/resolution/issue45136.src

     1  // Copyright 2021 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 issue45136
     6  
     7  type obj /* =@obj */ struct {
     8  	name /*=@name */ string
     9  }
    10  
    11  func _() {
    12  	var foo /* =@foo */ = "foo"
    13  	obj /* @obj */ ["foo"]
    14  	obj /* @obj */ .run()
    15  	obj /* @obj */ {
    16  		name: foo /* @foo */,
    17  	}
    18  	obj /* @obj */ {
    19  		name: "bar",
    20  	}.run()
    21  
    22  	var _ = File{key: obj /* @obj */ {}}
    23  	var _ = File{obj /* @obj */ {}}
    24  
    25  	[]obj /* @obj */ {foo /* @foo */}
    26  	x /* =@x1 */ := obj /* @obj */{}
    27  }
    28  

View as plain text