github.com/HaHadaxigua/yaegi@v1.0.1/_test/redeclaration-global5.go (about)

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