Files
moxa/_test/var5.go
Marc Vertes 63732d4326 fix: set type correctly for variable declaration with assignment (#59)
Do not ignore type node when used in a variable declaration with assign.
The source node in a assign node can be the 2nd or the 3rd (the 2nd being the type).
2019-01-28 16:00:15 +01:00

13 lines
134 B
Go

package main
import "fmt"
func main() {
var a int64 = 64
fmt.Printf("a: %v %T", a, a)
fmt.Println()
}
// Output:
// a: 64 int64