github.com/traefik/yaegi@v0.15.1/_test/redeclaration-global0.go (about)

     1  package main
     2  
     3  type time int
     4  
     5  var time string
     6  
     7  func main() {
     8  	time = "hello"
     9  	println(time)
    10  }
    11  
    12  // Error:
    13  // ../_test/redeclaration-global0.go:5:5: time redeclared in this block
    14  //	previous declaration at ../_test/redeclaration-global0.go:3:6