18 lines
198 B
Go
18 lines
198 B
Go
package main
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
func time() string {
|
|
return "hello"
|
|
}
|
|
|
|
func main() {
|
|
t := time()
|
|
println(t)
|
|
}
|
|
|
|
// Error:
|
|
// ../_test/redeclaration-global6.go:7:1: time redeclared in this block
|