You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Go compiler optimizes away useless conversions.
This can be easily viewed in godbolt by looking at the machine code.
There isn't any code to convert a: int to b: int
package main
funcmain() {
}
funcfoo(aint) {
b:=int(a)
println(b)
}