test/fixedbugs/issue58563.dir/main.go
raw| 1 | // Copyright 2023 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 main |
| 6 | |
| 7 | import "test/a" |
| 8 | |
| 9 | func main() { |
| 10 | stop := start() |
| 11 | defer stop() |
| 12 | } |
| 13 | |
| 14 | func start() func() { |
| 15 | return a.Start().Stop |
| 16 | } |