github.com/cnboonhan/delve@v0.0.0-20230908061759-363f2388c2fb/_fixtures/issue951.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"runtime"
     6  )
     7  
     8  func main() {
     9  	shadow(42)
    10  }
    11  
    12  func shadow(i int) {
    13  	for i := 0; i < 5; i++ {
    14  		for i := 20; i < 25; i++ {
    15  			runtime.Breakpoint()
    16  			fmt.Println("another shadow", i)
    17  		}
    18  		fmt.Println("shadow", i)
    19  	}
    20  	fmt.Println("arg", i)
    21  }