
Adjust heuristic used to skip autogenerated functions so that it works correctly with the new naming scheme in go1.18. Fixes #2948
15 lines
139 B
Go
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
|
|
}
|