delve/_fixtures/traceprog.go
Derek Parker a01fe73845
pkg/proc: do not check decl line for FunctionArguments (#3254)
Fixes a bug where we cannot get locals (including arguments and return
values) from a given scope because the line number state machine ends up
in an invalid state because of this parameter being set to false.
2023-01-24 15:56:05 +01:00

14 lines
126 B
Go

package main
import "fmt"
func callme(i int) int {
return i * i
}
func main() {
j := 0
j += callme(2)
fmt.Println(j)
}