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

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