gitlab.com/ethan.reesor/vscode-notebooks/yaegi@v0.0.0-20220417214422-5c573557938e/_test/redeclaration3.go (about)

     1  package main
     2  
     3  func main() {
     4  	var foo int
     5  	foo = 2
     6  
     7  	type foo struct{}
     8  	var bar foo
     9  	println(bar)
    10  }
    11  
    12  // Error:
    13  // ../_test/redeclaration3.go:7:7: foo redeclared in this block