Black Lives Matter. Support the Equal Justice Initiative.

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

Documentation: go/parser/testdata/resolution

     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 issue45160
     6  
     7  func mklink1 /* =@mklink1func */() {}
     8  
     9  func _() {
    10  	var tests /* =@tests */ = []dirLinkTest /* @dirLinkTest */ {
    11  		{
    12  			mklink1 /* @mklink1func */: func() {},
    13  			mklink2: func(link /* =@link */, target /* =@target */ string) error {
    14  				return nil
    15  			},
    16  		},
    17  	}
    18  }
    19  
    20  type dirLinkTest /* =@dirLinkTest */ struct {
    21  	mklink1 /* =@mklink1field */ func(string, string) error
    22  	mklink2 /* =@mklink2field */ func(string, string) error
    23  }
    24  
    25  func mklink2 /* =@mklink2func */() {}
    26  

View as plain text