delve/_fixtures/stepintobug.go
Alessandro Arzilli 3138157826
proc: skip autogenerated functions correctly (#2959)
Adjust heuristic used to skip autogenerated functions so that it works
correctly with the new naming scheme in go1.18.

Fixes #2948
2022-04-13 15:28:56 -07:00

15 lines
139 B
Go

package main
type T struct {
}
func main() {
t := T{}
f1 := t.m1
println(f1(1)) //break
}
func (t T) m1(x int) int {
return x + 1
}