...

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
     5package issue45160
     6
     7func mklink1 /* =@mklink1func */() {}
     8
     9func _() {
    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
    20type dirLinkTest /* =@dirLinkTest */ struct {
    21	mklink1 /* =@mklink1field */ func(string, string) error
    22	mklink2 /* =@mklink2field */ func(string, string) error
    23}
    24
    25func mklink2 /* =@mklink2func */() {}

View as plain text