The default type must be derived from the constant value when necessary, otherwise the type check fails wrongly. Fixes #1026.
12 lines
130 B
Go
12 lines
130 B
Go
package main
|
|
|
|
import "time"
|
|
|
|
func main() {
|
|
localTime := time.ANSIC
|
|
println(localTime)
|
|
}
|
|
|
|
// Output:
|
|
// Mon Jan _2 15:04:05 2006
|