0
Size: a a a
AM
MM
DP
АД
type OldType = NewType
NK
type OldType = NewType
ЛА
IK
ЛА
A
type UserId int64
type TownId int64
func main() {
moscow := TownId(5)
test(moscow) // cannot use moscow (type TownId) as type UserId in argument to test
}
func test(userId UserId) {
fmt.Println(userId)
}
🅚
S
type UserId int64
type TownId int64
func main() {
moscow := TownId(5)
test(moscow) // cannot use moscow (type TownId) as type UserId in argument to test
}
func test(userId UserId) {
fmt.Println(userId)
}
VM
VM
АЛ
AM
EK