Only one type name can come from TypeSpec. A question. So
type Foo int64
var x Foo
var y Foo
then both Foocome from the same TypeSpec, so they are identical to Foos.
However, if you have two different files (in different packages):
a.go:
type Foo int64
var x Foo
b.go:
type Foo int64
var y Foo
Foo . , , TypeSpec. , x y (, , x = y ).