In all situations where the results are set directly to the frame, and not using a value helper, the right level of indirections must be applied, otherwise we may end-up writing in the wrong frame (the local one, instead of a caller or global). Fixes #735.
19 lines
258 B
Go
19 lines
258 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
var dummy = 1
|
|
|
|
var t time.Time = time.Date(2007, time.November, 10, 23, 4, 5, 0, time.UTC)
|
|
|
|
func main() {
|
|
t = time.Date(2009, time.November, 10, 23, 4, 5, 0, time.UTC)
|
|
fmt.Println(t.Clock())
|
|
}
|
|
|
|
// Output:
|
|
// 23 4 5
|