
The file:line information for the entrypoint is more acccurate than the file:line information at a return point, which could be affected by a compiler bug. Fixes #2086
19 lines
160 B
Go
19 lines
160 B
Go
package main
|
|
|
|
import (
|
|
"runtime"
|
|
)
|
|
|
|
var i int
|
|
|
|
type T struct{}
|
|
|
|
func (t T) m() { stop() }
|
|
|
|
func stop() {
|
|
runtime.Breakpoint()
|
|
i++
|
|
}
|
|
|
|
func main() { T{}.m() }
|